Skip to content

FlameInTheDark/erh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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