Documentation
¶
Overview ¶
Package buildinfo is the single source of a running binary's build identity: a human-readable version label plus the embedded git commit, build time, and dirty flags. It is a leaf package (no spacemolt imports) so every binary can import it cheaply.
This SemVer axis tracks fleet *binary* builds. It is deliberately separate from pkg/version (VersionID, BuiltForAPIVersion), which tracks the game-server API the client targets. The two are not unified.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string // git describe label, module pseudo-version, or "dev"
Commit string // short vcs.revision, "" if unavailable
BuiltAt time.Time // vcs.time, zero if unavailable
Modified bool // raw vcs.modified — cosmetic only (noisy from data/*.json)
CodeDirty bool // uncommitted tracked code outside data/ — color-relevant
}
Info identifies the binary that is running.