Documentation ¶
Overview ¶
Package version executes and returns the version string for the currently running process.
Index ¶
Constants ¶
View Source
const ( Phase0 = iota Altair Bellatrix Capella Deneb )
Variables ¶
View Source
var ErrUnrecognizedVersionName = errors.New("version name doesn't map to a known value in the enum")
ErrUnrecognizedVersionName means a string does not match the list of canonical version names.
Functions ¶
func BuildData ¶
func BuildData() string
BuildData returns the git tag and commit of the current build.
func FromString ¶ added in v4.0.3
FromString translates a canonical version name to the version number.
func SemanticVersion ¶
func SemanticVersion() string
SemanticVersion returns the Major.Minor.Patch version of this build.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.