vyvanse/vendor/github.com/nishanths/go-xkcd/doc.go

22 lines
466 B
Go

/*
package xkcd provides methods to make requests to the xkcd.com API.
Example:
client := xkcd.NewClient()
comic, err := client.Latest()
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v", comic)
All functions on Client are safe to use concurrently. The Random() and
RandomInRange() functions do not modify the global random number generator.
More details on the xkcd API can be found at https://xkcd.com/json.html.
*/
package xkcd