version

package
v0.0.0-...-a838072 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2019 License: Unlicense, ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// These constants define the application version and follow the semantic
	// versioning 2.0.0 spec (http://semver.org/).
	AppMajor uint = 0
	AppMinor uint = 1
	AppPatch uint = 4
	// 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

func NormalizeVerString(str string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL