Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Date is the date and time at which the platform was built. Date string // GitCommit is the SHA of the commit from which the platform was built. GitCommit string // GitBranch is the branch name from which the platform was built. GitBranch string // GitState indicates whether uncommitted changes were present at build // time. GitState string // GitSummary is the output of `git describe --tags --dirty --always` at // build time. GitSummary string // ProjectName is the name of the complete system, used for config // directories etc ProjectName = "nomad-toast" // Version of the build Version string )
Functions ¶
func GetVersion ¶
func GetVersion() string
GetVersion is responsible for populating and returning the binary version information.
func SetProgramName ¶
func SetProgramName(name string)
SetProgramName sets the name of the currently executing program. It should be called at the earliest opportunity (e.g. in PersistentPreRun of the root Cobra command).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.