Documentation
¶
Overview ¶
Package version provides build metadata injected via ldflags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "unknown" BuildDate = "unknown" )
Values set at build time via -ldflags.
Functions ¶
func OverrideVersionForTesting ¶
func OverrideVersionForTesting(current string) func()
OverrideVersionForTesting swaps the reported version until the returned restore function is called. Tests must call the restore function.
Types ¶
Click to show internal directories.
Click to hide internal directories.