Documentation ¶
Overview ¶
Package version provides project version information. Golang ldflags -X in Makefile is used for values substitution
Example:
fmt.Println(version.GetFullVersion())
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "unset" // Version is release semantic version. BuildNumber = "unset" // BuildNumber is CI build number. BuildDate = "unset" // BuildDate is build date. BuildTime = "unset" // BuildTime is build date. CITool = "unset" // CITool is a continuous integration tool(Travis, DockerCloud, etc.). GitHash = "unset" // GitHash is short git commit hash. )
Functions ¶
func GetCommand ¶
func GetFullVersion ¶
func GetFullVersion() string
GetFullVersion returns multi line full version information
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.