Skip to content

kjkondratuk/go-dnd5eapi

Repository files navigation

go-dnd5eapi

Go

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.

Install

go get github.com/kjkondratuk/go-dnd5eapi

Create a client

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))

Sample Calls

Check out the examples in the examples folder!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages