Documentation
¶
Overview ¶
A package to adapt semver to better model the way the Go project represents versions with respect to toolchain releases. This is **NOT** a general purpose semver package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrBadVersionString = errors.New("invalid version string")
ErrBadVersionString meaning the version string is invalid
var ErrInvalidVersion = errors.New("invalid version")
ErrInvalidVersion is an error returned when the Version is not valid.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version represents semantic versions of the Go toolchain packaging. The Go archives don't strictly follow the standard. For example the first version of 1.15 for Linux is named go1.15.linux-amd64.tar.gz instead of go1.15.0.linux-amd64.tar.gz. This type takes the slight deveations into account.
func MustParseVersion ¶
MustParseVersion calls Parse and will panic is there is an error parsing the Version from the string.
func ParseVersion ¶
ParseVersion parses a Go style semver Version from a string.