Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// USERAGENT based on $(git describe --always) and set by 'scripts/build.sh'
USERAGENT = "unset"
)
Functions ¶
func Fetch ¶
Fetch queries an API endpoint and expects to receive JSON. It then unmarshals the JSON to the interface{} provided by the caller. By returning data this way, Fetch() ensures that JSON is always unmarshaled the same way, and that errors are handled correctly, but allows the returned data to be mapped to an arbitrary struct that the caller is aware of.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.