version

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version represents the main version number.
	//
	// Populated by the compiler.
	// Read-only.
	Version string = "0.0.0"

	// Prerelease represents an optional pre-release label for the version.
	// If this is "" (empty string) then it means that it is a final release.
	// Otherwise, this is a pre-release such as "beta", "rc1", etc.
	//
	// Populated by the compiler.
	// Read-only.
	Prerelease string = "dev"

	// Metadata represents an optional build metadata.
	//
	// Populated by the compiler.
	// Read-only.
	Metadata string

	// SemVer is an instance of SemVer version (https://semver.org/) used to
	// verify that the full version is a proper semantic version.
	//
	// Populated at runtime.
	// Read-only.
	SemVer *version.Version
)

Functions

func String

func String() string

String returns the complete version string, including prerelease and metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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