Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 622 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 622 Bytes

Switcheo APIs wrapper written in Go

switcheo-go is a go client library for Switcheo APIs

Installation

go get github.com/o3labs/switcheo-go

For details on all the functionality in this library, see the GoDoc documentation.

Example usage

api := client.New(switcheo.TestNetAPI, httpClient, switcheo.UserAgent)
c := general.Client{API: *api}
response, err := c.GetTimestamp()
if err != nil {
	fmt.Printf("%v", err)
	return
}
log.Printf("%+v", response)

Test

Each package contains test cases and including sample usage of apis