gofixerio — Simple wrapper for https://fixer.io API
go get https://github.com/LordotU/go-fixerio
FIXERIO_API_KEY="your API key here" go test
Note: all tests are written for free subscription plan!
The simplest example is:
import (
"log"
"https://github.com/LordotU/go-fixerio"
)
func main() {
fixerio := gofixerio.New("your API key here", "EUR", false)
latestRates, err := fixerio.GetLatest()
if err != nil {
log.Panic(err)
}
log.Printf("%+v", latestRates)
}