Documentation
¶
Overview ¶
Package currency provides a currency conversion interface and implementation.
Index ¶
Constants ¶
View Source
const ISOCurrencyUSD = "USD"
ISOCurrencyUSD is the ISO-4217 currency code for USD.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Converter ¶
type Converter interface {
Convert(isoBaseCurrency string, isoQuoteCurrency string, amount float64) (float64, error)
}
Converter is an interface that converts currency amounts between different ISO currencies.
func NewDummyConverter ¶
NewDummyConverter creates a new dummy currency converter.
Click to show internal directories.
Click to hide internal directories.