Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadVersionString = errors.New("invalid version string")
ErrBadVersionString meaning the version string is invalid
View Source
var ErrInvalidVersion = errors.New("invalid version")
ErrInvalidVersion is an error returned when the Version object is not valid.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version represents semantic versions of the go packaging. The Go archives don't strictly follow the standard. For example the first version of 1.15 for Linux is named g1.15.linux-amd64.tar.gz. To be compliant the package name would be go1.15.0.linux-amd64.tar.gz.
func MustParse ¶
MustParse calls Parse and will panic is there is an error parsing the Version from the string.
Click to show internal directories.
Click to hide internal directories.