baidu api store for golang, 百度APIStore接口Golang实现
import "github.com/h2object/apistore/currency"
client := currency.NewClient()
// 获取汇率币种类型
types, err := client.Catagories()
// 获取汇率转换
data := ExchangeData{
FromCurrency: "JPY",
ToCurrency: "CNY",
Amount: 1000,
}
err = client.Exchange(&data)
log.Println(data)