Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare returns
-1 if x is less than y, 0 if x equals y, +1 if x is greater than y.
Versions with channels are considered less than versions without channels, as per semver spec. If both versions have channels, they are compared as strings. A channel of "stable" is greater than any other channel.
Types ¶
type InvalidVersionError ¶
type InvalidVersionError struct {
// contains filtered or unexported fields
}
func (*InvalidVersionError) Error ¶
func (e *InvalidVersionError) Error() string
type Version ¶
func (Version) SignificantlyBehind ¶
Click to show internal directories.
Click to hide internal directories.