mirror of
https://github.com/Jguer/yay
synced 2024-10-07 00:29:10 +00:00
Add comments to Base type
This commit is contained in:
parent
c44f738ba8
commit
29b051134a
|
@ -6,16 +6,20 @@ import (
|
|||
rpc "github.com/mikkeloscar/aur"
|
||||
)
|
||||
|
||||
// Base is an AUR base package
|
||||
type Base []*rpc.Pkg
|
||||
|
||||
// Pkgbase returns the first base package.
|
||||
func (b Base) Pkgbase() string {
|
||||
return b[0].PackageBase
|
||||
}
|
||||
|
||||
// Version returns the first base package version.
|
||||
func (b Base) Version() string {
|
||||
return b[0].Version
|
||||
}
|
||||
|
||||
// URLPath returns the first base package URL.
|
||||
func (b Base) URLPath() string {
|
||||
return b[0].URLPath
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue