Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCurrency ¶
func AddCurrency(c Currency)
AddCurrency will add a currency to the list of currencies you can search for.
Types ¶
type Currency ¶
type Currency interface {
// NumericCode returns the ISO numeric currency code as a string, e.g. "840"
NumericCode() string
// DecimalDigits returns the number of decimal digits used by the currency
DecimalDigits() int
// String returns the ISO alphabetic currency code, e.g. "GBP"
String() string
}
Currency represents a monetary currency
func FindCurrency ¶
FindCurrency will return a currency based on the currency code (numeric or alpha)
func NewCurrency ¶
NewCurrency constructs a currency object
Click to show internal directories.
Click to hide internal directories.