Versions in this module Expand all Collapse all v0 v0.0.2 Jan 27, 2022 v0.0.1 Jan 26, 2022 Changes in this version + const CodeEUR + const CodeKZT + const CodeRUB + const CodeUSD + var ErrBadCurrency = errors.New("bad currency") + var ErrBadMinorUnit = errors.New("bad currency minor unit") + type Currency uint32 + const EUR + const KZT + const RUB + const USD + const Unknown + func ParseCurrency(s string) Currency + func (c Currency) ISO4217() *ISO4217 + func (c Currency) MinorUnits() MinorUnits + func (c Currency) String() string + func (c Currency) Validate() error + type ISO4217 struct + AlphabeticCode string + MinorUnits MinorUnits + Name string + NumericCode uint16 + type MinorUnits uint8 + const MinorUnits0 + const MinorUnits2 + const MinorUnits3 + const MinorUnitsUnknown + func (m MinorUnits) String() string + func (m MinorUnits) Validate() error + func (m MinorUnits) Zero() string