Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version string
Version is a Pacman package version string. For more information, see https://wiki.archlinux.org/index.php/PKGBUILD#Version
func (Version) Epoch ¶
Epoch returns the epoch part of the package version. If the version doesn't contain an epoch, it returns -1.
Note: This method doesn't perform any checks. Call v.Valid() before calling this if you're unsure if the version string is valid.
func (Version) Pkgrel ¶
Pkgrel returns the package release number. If the version string doesn't contain a release number, which is invalid, it returns -1.
Note: This method doesn't perform any checks. Call v.Valid() before calling this if you're unsure if the version string is valid.
Click to show internal directories.
Click to hide internal directories.