Documentation ¶
Overview ¶
Package version holds some version data common to bosun and scollector. Most of these values will be inserted at build time with `-ldFlags` directives for official builds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version number for official releases Updated manually before each release. Version = "0.5.0" // Set to any non-empty value by official release script OfficialBuild string // Date and time of build. Should be in YYYYMMDDHHMMSS format VersionDate string // VersionSHA should be set at build time as the most recent commit hash. VersionSHA string )
These variables will be set at linking time for official builds. build.go will set date and sha, but `go get` will set none of these.
Functions ¶
func GetVersionInfo ¶
Get a string representing the version information for the current binary.
func ShortVersion ¶
func ShortVersion() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.