Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildDate is the timestamp for when the build happened. BuildDate string // Commit is the commit hash at which the binary was built. Commit string // Tag is the tag name at which the binary was built. Tag string // GoVersion is the version of Go used to build the binary. GoVersion string // Version is the canonical version string for the binary. Version string )
Functions ¶
This section is empty.
Types ¶
type BinVersion ¶
type BinVersion struct { Arch string BuildDate string Commit string Tag string GoCompiler string GoVersion string OS string Version string }
BinVersion describes the version of the binary for the CLI.
This should be populated via build-time args passed in for the corresponding variables.
func GetVersion ¶
func GetVersion() *BinVersion
GetVersion gets the version information for the CLI. It builds a BinVersion using the variables that should be set as build-time arguments.
Click to show internal directories.
Click to hide internal directories.