A neat Go wrapper for the frankfurter.app API
go get -u github.com/masl/frankfurtergo
client := frankfurtergo.New()
latest, err := client.FetchLatest()
if err != nil {
return err
}
t := time.Date(
2010, 8, 18, 16, 0, 0, 0, time.UTC)
hist, err := client.FetchHistorical(t)
if err != nil {
return err
}
f := time.Date(
2010, 8, 18, 16, 0, 0, 0, time.UTC)
t := time.Date(
2012, 4, 20, 16, 0, 0, 0, time.UTC)
series, err := client.FetchSeries(f, t)
if err != nil {
return err
}
Feel free to help me out as I'm learning Go with this project and would appreciate any kind of help