Documentation ¶
Index ¶
- type Big
- func (b *Big) Add(c *Big) *Big
- func (b *Big) Bytes() []byte
- func (b *Big) Cmp(c *Big) int
- func (b *Big) Equal(c *Big) bool
- func (b *Big) Hex() string
- func (b *Big) Int64() int64
- func (b Big) MarshalJSON() ([]byte, error)
- func (b Big) MarshalText() ([]byte, error)
- func (b *Big) Mod(c *Big) *Big
- func (b *Big) Scan(value interface{}) error
- func (b *Big) String() string
- func (b *Big) Sub(c *Big) *Big
- func (b *Big) ToInt() *big.Int
- func (b *Big) UnmarshalJSON(input []byte) error
- func (b *Big) UnmarshalText(input []byte) error
- func (b Big) Value() (driver.Value, error)
- type BigFloat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Big ¶
Big stores large integers and can deserialize a variety of inputs.
func (Big) MarshalJSON ¶
MarshalJSON marshals this instance to base 10 number as string.
func (Big) MarshalText ¶
MarshalText marshals this instance to base 10 number as string.
func (*Big) UnmarshalJSON ¶
UnmarshalJSON implements encoding.JSONUnmarshaler.
func (*Big) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type BigFloat ¶
BigFloat accepts both string and float JSON values.
func (BigFloat) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*BigFloat) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshal interface.
Click to show internal directories.
Click to hide internal directories.