Documentation
¶
Overview ¶
Package version exposes the running binary's semver to other packages without dragging in a dependency on cmd/bones. main.go sets it via Set() at startup; everything else calls Get().
The default ("dev") is what unset GoReleaser ldflags produce, so development builds and tests see a stable value. Drift checks treat "dev" specially — they do not warn against "dev" because the workspace stamp would always look stale during local hacking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() string
Get returns the running binary's version, or "dev" if Set was never called.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.