Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare returns an integer comparing two version strings. The result will be 0 if x==y, -1 if x < y, and +1 if x > y. An error is returned, if version string can't be parsed.
func MustCompare ¶
MustCompare returns an integer comparing two version strings. The result will be 0 if x==y, -1 if x < y, and +1 if x > y.
Types ¶
type InvalidVersion ¶
type InvalidVersion struct {
// contains filtered or unexported fields
}
func (InvalidVersion) Error ¶
func (e InvalidVersion) Error() string
type Version ¶
func NewVersion ¶
Click to show internal directories.
Click to hide internal directories.