Documentation ¶ Index ¶ type Currency func (e Currency) Code() int32 func (e Currency) Des() string func (e Currency) Enum() string func (e Currency) MarshalJSON() ([]byte, error) func (e *Currency) UnmarshalJSON(value []byte) error func (e Currency) Val() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Currency ¶ type Currency int const ( CNY Currency = iota + 1 ) func (Currency) Code ¶ added in v0.4.38 func (e Currency) Code() int32 func (Currency) Des ¶ func (e Currency) Des() string func (Currency) Enum ¶ added in v0.4.38 func (e Currency) Enum() string func (Currency) MarshalJSON ¶ func (e Currency) MarshalJSON() ([]byte, error) func (*Currency) UnmarshalJSON ¶ func (e *Currency) UnmarshalJSON(value []byte) error func (Currency) Val ¶ func (e Currency) Val() int Source Files ¶ View all Source files enum.go Click to show internal directories. Click to hide internal directories.