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) Scan(value interface{}) error
- func (a Amount) String() string
- func (a Amount) Sub(b Amount) Amount
- func (a Amount) 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 NewInt64Amount ¶
NewInt64Amount returns a new amount for the given int64 value
func (Amount) MarshalJSON ¶
MarshalJSON returns a JSON representation of amount
Click to show internal directories.
Click to hide internal directories.