Documentation
¶
Overview ¶
Package version exposes the konareef build version.
The value is injected at release-build time via
-ldflags "-X github.com/digitsu/konareef/internal/version.version=v0.1.0"
(goreleaser does this automatically). Absent that injection, String() falls back to the Go module version recorded in the binary's build info, which `go install github.com/digitsu/konareef@vX.Y.Z` populates from the VCS tag. A plain `go build` of a working tree reports "dev".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String ¶
func String() string
String returns the konareef version string.
Precedence:
- the ldflags-injected value (release binaries), else
- the module version from the embedded build info (`go install m@vX.Y.Z`), ignoring the placeholder "(devel)", else
- "dev" (a plain `go build` of a working tree).
It never returns an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.