version

package
v0.0.0-...-db4ab52 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package version provides a single location to house the version information for fnod and other utilities provided in the same repository.

Index

Constants

View Source
const (
	Major uint = 1
	Minor uint = 3
	Patch uint = 1
)

These constants define the application version and follow the semantic versioning 2.0.0 spec (http://semver.org/).

Variables

View Source
var (
	// PreRelease is defined as a variable so it can be overridden during the
	// build process with:
	// '-ldflags "-X github.com/fonero-project/politeia/util/version.PreRelease=foo"'
	// if needed.  It MUST only contain characters from semanticAlphabet per
	// the semantic versioning spec.
	PreRelease = "pre"

	// BuildMetadata is defined as a variable so it can be overridden during the
	// build process with:
	// '-ldflags "-X github.com/fonero-project/politeia/util/version.BuildMetadata=foo"'
	// if needed.  It MUST only contain characters from semanticBuildAlphabet
	// per the semantic versioning spec.
	BuildMetadata = "dev"
)

Functions

func NormalizeBuildString

func NormalizeBuildString(str string) string

NormalizeBuildString returns the passed string stripped of all characters which are not valid according to the semantic versioning guidelines for build metadata strings. In particular they MUST only contain characters in semanticBuildAlphabet.

func NormalizePreRelString

func NormalizePreRelString(str string) string

NormalizePreRelString returns the passed string stripped of all characters which are not valid according to the semantic versioning guidelines for pre-release strings. In particular they MUST only contain characters in semanticAlphabet.

func String

func String() string

String 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