A go client for interacting with the dnd5eapi. This is a first-pass at a go client with minimal dependencies, so there will likely be plenty of bugs at this stage--PRs are welcome.
go get github.com/kjkondratuk/go-dnd5eapi
Simply:
client := go_dnd5eapi.NewApiClient("<Base URL Here>"))
Or, create a client with a client with a custom config:
myCustomClient := &http.Client{
// ... custom client options here ...
}
client := go_dnd5eapi.NewApiClient("<Base URL Here>", go_dnd5eapi.WithHttpClient(myCustomClient))
Check out the examples in the examples
folder!