Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencyCode ¶
type CurrencyCode string
CurrencyCode is a three-letter currency code defined in ISO 4217.
const ( EUR CurrencyCode = "EUR" GBP CurrencyCode = "GBP" )
List of ISO 4217 codes.
type Money ¶
type Money struct { Code CurrencyCode // Amount of money as integer number of minor units. For instance 3.56€ is // 356 because EUR has two decimals. Amount int64 }
Money represents an amount of money with its currency type.
Click to show internal directories.
Click to hide internal directories.