version

package
v1.9.22 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Unlicense, ISC Imports: 3 Imported by: 2

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

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