Skip to content

LordotU/go-fixerio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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