Documentation ¶
Overview ¶
Package version provides a simple way to parse versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Unknown = Version{
Major: 255,
}
Unknown is the unknown version.
Functions ¶
func AddPrefixV ¶ added in v0.2.0
AddPrefixV returns the version with the prefix 'v'.
func DefaultUserAgent ¶ added in v0.2.0
func DefaultUserAgent() string
DefaultUserAgent returns a User-Agent string built from static global vars.
func DisplayVersion ¶ added in v0.2.0
func DisplayVersion() string
DisplayVersion is the version string for the current build
func TrimPrefixV ¶ added in v0.2.0
TrimPrefixV returns the version without the prefix 'v'.
Types ¶
type Version ¶
type Version = semver.Version
Version represents a semver compatible version
func NewVersion ¶
NewVersion creates a new version.
func ParseFromOutput ¶
ParseFromOutput parses the version from the output.
func ParseVersion ¶ added in v0.2.0
ParseVersion parses the version.
Click to show internal directories.
Click to hide internal directories.