package
Version:
v0.0.0-...-af36fad
Opens a new window with list of versions in this module.
Published: Aug 2, 2019
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Fetch makes a GET request to the given resource url
ParseBase retrieves base currency value from the decoded json response
func ParseRates(data []byte) map[string]interface{}
ParseRates retrieves rates object from the decoded json response
type Currency struct {
Rates map[string]interface{}
Base string
}
Currency holds our base currency and the exchange rates of other currencies against the base currency
Convert converts a value from one currency to another
Source Files
¶
Click to show internal directories.
Click to hide internal directories.