Documentation ¶
Overview ¶
Package semver has been vendored from: https://github.com/coreos/go-semver/tree/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver A number of the original functions of the package have been removed since they are not required for our built-ins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreRelease ¶
type PreRelease string
PreRelease represents a pre-release suffix string
func (PreRelease) Slice ¶
func (p PreRelease) Slice() []string
Slice splits the pre-release suffix string
type Version ¶
type Version struct { Major int64 Minor int64 Patch int64 PreRelease PreRelease Metadata string }
Version represents a parsed SemVer
func NewVersion ¶
NewVersion constructs new SemVers from strings
func (Version) Compare ¶
Compare tests if v is less than, equal to, or greater than versionB, returning -1, 0, or +1 respectively.
Click to show internal directories.
Click to hide internal directories.