Documentation
¶
Overview ¶
Package version exposes build metadata injected at link time via `go build -ldflags "-X ...Version=..." -ldflags "-X ...Commit=..." -ldflags "-X ...BuildTime=..."`. Default values keep development builds informative without requiring an LDFLAGS dance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildTime = ""
BuildTime is the ISO-8601 UTC timestamp at which the binary was built. Set at link time via -ldflags. Empty for non-LDFLAGS builds.
var Commit = ""
Commit is the short git SHA the binary was built from. Set at link time via -ldflags. Empty for non-LDFLAGS builds.
var Version = "dev"
Version is the human-readable build version. Set at link time by the Makefile + release workflow to the git tag (e.g. "v1.0.0") or `git describe` output for in-development builds. Defaults to "dev" for `go run` / `go test` invocations.
Functions ¶
Types ¶
This section is empty.