Documentation ¶
Overview ¶
types and functions for converting currencies to/from enumeration values
Index ¶
- type Currency
- func (currency Currency) GoString() string
- func (currency Currency) MarshalText() ([]byte, error)
- func (currency *Currency) Scan(state fmt.ScanState, verb rune) error
- func (currency Currency) String() string
- func (currency Currency) Uint64() uint64
- func (currency *Currency) UnmarshalText(s []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency uint64
currency enumeration
const ( Nothing Currency = iota // this must be the first value Bitcoin Currency = iota First Currency = Nothing + 1 Last Currency = maximumValue - 1 )
possible currency values
func (Currency) MarshalText ¶
convert a currency into JSON
func (*Currency) Scan ¶
convert a big endian hex representation to a digest for use by the format package scan routines
func (*Currency) UnmarshalText ¶
convert currency string to a currency enumeration value from JSON
Click to show internal directories.
Click to hide internal directories.