Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LordotU/go-fixerio

Open more actions menu

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.