Arch Linux helpers and parsers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
404 B

package aur
import "encoding/json"
// Response is a response from the RPC API
type Response struct {
Version int `json:"version"`
Type string `json:"type"`
ResultCount int `json:"resultcount"`
Results json.RawMessage `json:"results"`
ErrorMessage string `json:"error"`
func (res Response) Error() string {
return res.ErrorMessage