Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCodes ¶
func GenerateCodes() error
GenerateCodes is a special tool function used to convert the source XML data into an array of currency definitions.
Types ¶
type CurrencyDef ¶
type CurrencyDef struct {
Name string `xml:"CcyNm"` // name of the currency
Country string `xml:"CtryNm"` // name of the country it belongs to
Code string `xml:"Ccy"` // three-letter currency code
Num string `xml:"CcyNbr"` // three-digit currency code
Units string `xml:"CcyMnrUnts"` // how many cents are used for the currency
}
type CurrencyDoc ¶
type CurrencyDoc struct {
XMLName xml.Name `xml:"ISO_4217"`
Table *CurrencyTable `xml:"CcyTbl"`
}
type CurrencyTable ¶
type CurrencyTable struct {
Rows []*CurrencyDef `xml:"CcyNtry"`
}
Click to show internal directories.
Click to hide internal directories.