Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUserAgent ¶
func SetUserAgent(value string)
Types ¶
type Package ¶
type Package struct { ID int64 `json:"ID"` Name string `json:"Name"` PackageBaseID int64 `json:"PackageBaseID"` PackageBase string `json:"PackageBase"` Version string `json:"Version"` Description string `json:"Description"` URL string `json:"URL"` NumVotes int64 `json:"NumVotes"` Popularity int64 `json:"Popularity"` OutOfDate interface{} `json:"OutOfDate"` Maintainer string `json:"Maintainer"` FirstSubmitted int64 `json:"FirstSubmitted"` LastModified int64 `json:"LastModified"` URLPath string `json:"URLpath"` }
type ResponseInfo ¶
type ResponseInfo struct { Version int `json:"version"` Type string `json:"type"` ResultCount int `json:"resultcount"` Packages []Package `json:"results"` }
func FindPackageByNameInAur ¶
func FindPackageByNameInAur(name string) (*ResponseInfo, error)
func GetPackageInfoByName ¶
func GetPackageInfoByName(name string) (*ResponseInfo, error)
type SearchType ¶
type SearchType int
const ( Search SearchType = iota Info Multiinfo Error )
func (SearchType) String ¶
func (s SearchType) String() string
Click to show internal directories.
Click to hide internal directories.