modulepackage
0.0.0-20180106224102-b9451d299555
Repository: https://github.com/matperez/go-cbr-client.git
Documentation: pkg.go.dev
# README
Central bank of the Russian Federation currency rates client CBRF
Usage example
package main
import (
cbr "github.com/matperez/go-cbr-client"
"time"
"fmt"
)
func main() {
client := cbr.NewClient()
rate, err := client.GetRate("USD", time.Now())
if err != nil {
panic(err)
}
fmt.Prinln(rate)
}
# Functions
NewClient creates a new rates service instance.
# Interfaces
Client is a currency rates service client..
# Type aliases
FetchFunction is a function that mimics http.Get() method.