pacman

package module
v0.0.0-...-7c9707c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2015 License: GPL-2.0 Imports: 3 Imported by: 1

README

pacman

pacman is an attempt to create a set of pure Go packages that allow interaction with the Arch Linux package manager, Pacman, and the various services associated with it, such as the AUR. Pacman related tools that use these packages, such as an AUR helper, are planned as well.

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

func (v Version) Epoch() int

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

func (v Version) Pkgrel() int

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.

func (Version) Pkgver

func (v Version) Pkgver() string

Pkgver returns the main version part of the version string.

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) Valid

func (v Version) Valid() bool

Valid checks if the version string is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL