Documentation
¶
Overview ¶
Package currency currency-related logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCurrencyNotFound is an error which various select methods will return // if the requested currency was not found ErrCurrencyNotFound = errors.New("currency not found") )
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency struct {
CodeISO4217 string
}
Currency represents a currency in ISO4217 code
func CurrencyAllDB ¶
CurrencyAllDB selects all available currencies
func CurrencyByCodeISO4217DB ¶
CurrencyByCodeISO4217DB selects a currency by the given code
If no such currency exists, it will return an empty currency
func CurrencyByCodeISO4217Tx ¶
CurrencyByCodeISO4217Tx selects a currency by the given code
If no such currency exists, it will return an empty currency
func (Currency) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.