Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provenance ¶ added in v1.0.0
Provenance is the VCS state the Go toolchain stamped into the binary. The zero value means no VCS metadata was embedded (go test, or a build outside a repository); only Dirty separates a working-tree build from the release version.txt claims.
func GetProvenance ¶ added in v1.0.0
func GetProvenance() Provenance
GetProvenance reads vcs.revision/vcs.modified/vcs.time from the running binary's build info.
func (Provenance) String ¶ added in v1.0.0
func (p Provenance) String() string
String renders "revision <rev> (working tree modified), built <time>", omitting absent parts; empty for the zero value.
Click to show internal directories.
Click to hide internal directories.