Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency struct { Key string Value interface{} Format FormatCurrency // ISO 3-letter ISO 4217 ISO string }
Currency argument.
type CurrencyOption ¶
type CurrencyOption func(*Currency)
CurrencyOption configures option.
func WithCurrencyFormat ¶
func WithCurrencyFormat(format FormatCurrency) CurrencyOption
WithCurrencyFormat sets format currency.
func WithCurrencyISO ¶
func WithCurrencyISO(iso string) CurrencyOption
WithCurrencyISO sets ISO 4217 code currecy.
type FormatCurrency ¶
type FormatCurrency int
FormatCurrency types format.
const ( CurrencyFormatSymbol FormatCurrency = iota + 1 CurrencyFormatISO CurrencyFormatNarrowSymbol )
Currency format.
type FormatNumber ¶
type FormatNumber int
FormatNumber format number.
const ( NumberFormatDecimal FormatNumber = iota + 1 NumberFormatPercent NumberFormatPerMille NumberFormatEngineering NumberFormatScientific )
format argument.
type Number ¶
type Number struct { Key string Value interface{} Format FormatNumber }
Number argument.
type NumberOption ¶
type NumberOption func(*Number)
NumberOption configure number argument.
func WithNumberFormat ¶
func WithNumberFormat(format FormatNumber) NumberOption
WithNumberFormat sets format number.