Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Version ¶
type Version string
Version represents a package version ref. https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/master/src/version.c
func (Version) Compare ¶
Compare returns an integer comparing two version according to apk 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.