github.com/LordotU/go-fixerio

💱 Simple client for https://fixer.io API


Keywords
exchange-rates, currency-exchange-rates, currencies, rates, fixerio, fixer-rate, fixer-io, rates-exchange-api, fixer-client
License
MIT
Install
go get github.com/LordotU/go-fixerio

Documentation

gofixerio — Simple wrapper for https://fixer.io API

License Go Report Card GoDoc Build Status Coverage Status

Installation

go get https://github.com/LordotU/go-fixerio

Testing

FIXERIO_API_KEY="your API key here" go test

Note: all tests are written for free subscription plan!

Usage

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)
	}

Docs

https://godoc.org/github.com/LordotU/go-fixerio