Documentation ¶
Overview ¶
Package version provides build version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CobraCommand ¶
CobraCommand returns a command used to print version information.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string `json:"version"` GitRevision string `json:"revision"` User string `json:"user"` Host string `json:"host"` GolangVersion string `json:"golang_version"` DockerHub string `json:"hub"` BuildStatus string `json:"status"` }
BuildInfo describes version information about the binary build.
var ( // Info exports the build version information. Info BuildInfo )
Click to show internal directories.
Click to hide internal directories.