package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 12, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
bnm-go
Go library used to get official exchange rates of National bank of Moldova
[![license](https://img.
Documentation
¶
Main Inst instance
Request BNM rates by using Query
Query struct used to describe request query
Create new Query instance
Use query to generate URI used for GET request
type Rate struct {
Code string `xml:"CharCode" json:"code"`
Name string `json:"name"`
Value float32 `json:"value"`
}
Rate model
type Result struct {
Rates []Rate `xml:"Valute",json:"rates"`
}
Parsed XML
Source Files
¶
Click to show internal directories.
Click to hide internal directories.