Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the current version Version = "0.0.0" // Branch is current branch name the code is built off. Branch = "unknown" // Revision is the short commit hash of source tree Revision = "unknown" // BuiltAt is the build time BuiltAt = "unknown" // GoVersion is the go version used to build GoVersion = "unknown" )
These variables are set during build time
Functions ¶
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Branch string `json:"branch"`
Revision string `json:"revision"`
BuiltAt string `json:"builtAt"`
GoVersion string `json:"goVersion"`
}
Info contains version information
func GetVersionInfo ¶
func GetVersionInfo() Info
GetVersionInfo returns version information with runtime git info
Click to show internal directories.
Click to hide internal directories.