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

22 lines
466 B
Go
Raw Normal View History

2017-08-25 08:22:58 +00:00
/*
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