go_dnd5eapi

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 23 Imported by: 0

README

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!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL