go-reservoir

module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT

README

go-reservoir

Go Reference

A Go client for the Reservoir API.

Endpoints supported

v1

https://docs.reservoir.tools/reference/

  • Collections

Example usage

package main

import (
	"github.com/mager/go-reservoir/reservoir"
)

func main() {
	// Create a new client
	client := reservoir.NewReservoirClient("")

	// Get Collections
	slug := "azuki"
	c, err := client.GetCollection(slug)
	if err != nil {
		// TODO: Handle error
	}

	// Print the collection
    client.Log.Info(c.Name)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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