Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseError = errors.New("provided string cannot be parsed into semver")
Functions ¶
This section is empty.
Types ¶
type Comparsion ¶
type Comparsion int
const ( CompareEqual Comparsion = iota CompareOldMajor CompareNewMajor CompareOldMinor CompareNewMinor CompareOldPatch CompareNewPatch )
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func GetPortalLatest ¶
func (Version) Compare ¶
func (sv Version) Compare(oracle Version) Comparsion
Compare compares the semver against the provided oracle statement. Return -1 if the semver is less than the oracle statement, 1 if the oracle statement is larger than the semver and 0 if they are equal.
Click to show internal directories.
Click to hide internal directories.