Documentation
¶
Overview ¶
Package buildinfo resolves the version embedded in a Gloss binary.
Index ¶
Constants ¶
View Source
const DevelopmentVersion = "dev"
Variables ¶
View Source
var InjectedVersion string
InjectedVersion is set only by tagged release builds:
go build -ldflags "-X github.com/Architeg/gloss/internal/buildinfo.InjectedVersion=v1.2.3"
Functions ¶
func Display ¶
Display adds the conventional v prefix to stable versions while leaving development labels unchanged.
func NormalizeStable ¶
NormalizeStable accepts a stable three-component semantic version with an optional leading v and returns the canonical version without that prefix.
func Resolve ¶
Resolve applies the release-injection, module-build-info, development fallback order. It is exported so tests can use synthetic build metadata without mutating process-global state.
func ValidateReleaseTag ¶
ValidateReleaseTag requires the exact stable release-tag form vX.Y.Z.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.