Documentation
¶
Index ¶
- type Amount
- func (a Amount) Add(b Amount) Amount
- func (a Amount) Compare(b Amount) int
- func (a Amount) MarshalJSON() ([]byte, error)
- func (a Amount) Mul(b Amount) Amount
- func (a Amount) PercentOf(b Amount) float64
- func (a Amount) Quo(b Amount) Amount
- func (a *Amount) Scan(value interface{}) error
- func (a Amount) String() string
- func (a Amount) Sub(b Amount) Amount
- func (a Amount) Value() (driver.Value, error)
- type Float
- func (a Float) Add(b Float) Float
- func (a Float) MarshalJSON() ([]byte, error)
- func (a Float) Mul(b Float) Float
- func (a Float) Quo(b Float) Float
- func (a *Float) Scan(value interface{}) error
- func (a Float) String() string
- func (a Float) Sub(b Float) Float
- func (a Float) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amount ¶
Amount represense a NEAR yocto
func NewFloatAmount ¶
func NewInt64Amount ¶
NewInt64Amount returns a new amount for the given int64 value
func (Amount) MarshalJSON ¶
MarshalJSON returns a JSON representation of amount
type Float ¶ added in v0.11.0
func NewFloat64Float ¶ added in v0.11.0
NewFloat64Float returns a new float for the given float64 value
func (Float) MarshalJSON ¶ added in v0.11.1
Click to show internal directories.
Click to hide internal directories.