Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionMajor = 0 // Major version component of the current release VersionMinor = 2 // Minor version component of the current release VersionPatch = 0 // Patch version component of the current release VersionMeta = "unstable" // Version metadata to append to the version string )
Variables ¶
View Source
var ( // Git SHA1 commit hash of the release (set via linker flags) Commit string Date string )
View Source
var Version = func() string { return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) }()
Version holds the textual version string.
View Source
var VersionWithMeta = func() string { v := Version if VersionMeta != "" { v += "-" + VersionMeta } return v }()
VersionWithMeta holds the textual version string including the metadata.
Functions ¶
func VersionWithCommit ¶
func VersionWithCommit() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.