Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.03 KB

Go Report Card Go Reference

Exchange Rate API

API client for https://exchangerate.host

Usage example

go get -u github.com/FlameInTheDark/erh

package main
import (
    "log"
    "github.com/FlameInTheDark/erh"
)

func main() {
    c := erh.NewClient()
    conv, err := c.Convert("USD", "EUR", 30.25, erh.ArgPlaces(2))
    if err != nil {
        log.Fatal(err)
    }
}

Methods