Documentation ¶
Overview ¶
Package buildinfo hosts build info variables populated via ldflags.
Index ¶
Constants ¶
View Source
const DefaultVersion = "v0.0.0-dev"
DefaultVersion is the default value for Version if not set via ldflags.
Variables ¶
View Source
var ( // Version is the build version. If not set at build time via // ldflags, Version takes the value of DefaultVersion. Version = DefaultVersion // Commit is the commit hash. Commit string // Timestamp is the timestamp of when the cli was built. Timestamp string )
Functions ¶
func IsDefaultVersion ¶ added in v0.21.0
func IsDefaultVersion() bool
IsDefaultVersion returns true if Version is empty or DefaultVersion.
Types ¶
Click to show internal directories.
Click to hide internal directories.