Documentation
¶
Index ¶
- func Base(v string) string
- func Canonical(v string) string
- func Compare(x, y string) int
- func IsPrerelease(v string) bool
- func IsValid(sample string) bool
- func Major(sample string) int
- func MajorMinorPatch(version string) (int, int, int)
- func Max(v, w string) string
- func Pseudo(v string) string
- func PseudoParts(v string) (base string, moment string, sha string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶ added in v1.0.4
Canonical returns canonical semver from some version-like input string
func IsPrerelease ¶ added in v1.0.4
IsPrerelease if this version is pre-released in our custom sense: it should have form vX.Y.Z-pre-....
func Major ¶
Major returns major component of semver string. Returns -1 if major component turned to be not a number
func MajorMinorPatch ¶ added in v1.0.4
MajorMinorPatch returns three main components of given semver
Types ¶
This section is empty.