Documentation ¶
Index ¶
Constants ¶
View Source
const ( LESS = -1 EQUAL = 0 GREATER = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a package version. (https://archlinux.org/pacman/vercmp.8.html)
func NewVersion ¶
NewVersion returns a parsed version
func (Version) Compare ¶
Compare returns an integer comparing two version. The result will be 0 if v1==v2, -1 if v1 < v2, and +1 if v1 > v2.
func (*Version) GreaterThan ¶
GreaterThan returns whether this version is greater than another version.
Click to show internal directories.
Click to hide internal directories.