Skip to content

This library is a pure Go interface for the ExchangeRate-API.

License

Notifications You must be signed in to change notification settings

sorucoder/exchangerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exchangerate

This library is a pure Go interface for the ExchangeRate-API.

Requirements

You will need an API key from ExchangeRate-API. Place the API key in the environment variable EXCHANGERATE_API_KEY.

Sample Usage

package main

import (
    "fmt"
    "github.com/sorucoder/exchangerate"
)

func main() {
    fmt.Printf("$5.50 USD = £%0.2f GBP\n", exchangerate.Convert(exchangerate.CurrencyFromCode("USD"), exchangerate.CurrencyFromCode("GBP"), 5.5))
}

About

This library is a pure Go interface for the ExchangeRate-API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages