Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppMajor uint = 0 AppMinor uint = 2 AppPatch uint = 2 // AppPreRelease MUST only contain characters from semanticAlphabet per // the semantic versioning spec. AppPreRelease = "beta" )
Variables ¶
View Source
var AppBuild string
appBuild is defined as a variable so it can be overridden during the build process with '-ldflags "-X main.appBuild foo' if needed. It MUST only contain characters from semanticAlphabet per the semantic versioning spec.
Functions ¶
func NormalizeVerString ¶
NormalizeVerString returns the passed string stripped of all characters which are not valid according to the semantic versioning guidelines for pre-release version and build metadata strings. In particular they MUST only contain characters in semanticAlphabet.
func Version ¶
func Version() string
Version returns the application version as a properly formed string per the semantic versioning 2.0.0 spec (http://semver.org/).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.