golang client library for currencystack.io
go get -u github.com/currencystack/currencystack-go
Get ip info:
package main
import (
currencystack "github.com/currencystack/currencystack-go"
"fmt"
)
func main() {
currencystackClient, err := currencystack.NewClient("API key here")
if err != nil {
fmt.Println(err)
return
}
response, err := currencystackClient.CurrencyRepo.GetCurrencyConvertion("eur", []string{"Usd", "egp", "aed"})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(response)
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.