Documentation ¶
Index ¶
- func Cmp(x, y *BigInt) int
- type BigFloat
- func (b *BigFloat) Float() *big.Float
- func (b *BigFloat) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (b *BigFloat) MarshalText() (text []byte, err error)
- func (b *BigFloat) SetString(value string) (*BigFloat, bool)
- func (b *BigFloat) String() string
- func (b *BigFloat) UnmarshalBSONValue(tpe bsontype.Type, data []byte) error
- func (b *BigFloat) UnmarshalText(text []byte) (err error)
- type BigInt
- func (b *BigInt) Int() *big.Int
- func (b *BigInt) MarshalBSONValue() (bsontype.Type, []byte, error)
- func (b *BigInt) MarshalText() (text []byte, err error)
- func (b *BigInt) String() string
- func (b *BigInt) UnmarshalBSONValue(tpe bsontype.Type, data []byte) error
- func (b *BigInt) UnmarshalText(text []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigFloat ¶
BigFloat is a wrapper over big.Float to implement only unmarshalText for json decoding.
func NewBigFloat ¶
NewBigFloat create a new BigFloat from a big.Float
func (*BigFloat) MarshalBSONValue ¶
MarshalBSONValue implements the bson.ValueMarshaler interface
func (*BigFloat) MarshalText ¶
MarshalText implements the text marshal interface
func (*BigFloat) UnmarshalBSONValue ¶
UnmarshalBSONValue is an interface implemented that can unmarshal a BSON value representation of themselves.
func (*BigFloat) UnmarshalText ¶
UnmarshalText implements the text Unmarshal interface
type BigInt ¶
BigInt is a wrapper over big.Int to implement only unmarshalText for json decoding.
func (*BigInt) MarshalBSONValue ¶
MarshalBSONValue implements the bson.ValueMarshaler interface
func (*BigInt) MarshalText ¶
MarshalText implements the text marshal interface
func (*BigInt) UnmarshalBSONValue ¶
UnmarshalBSONValue is an interface implemented that can unmarshal a BSON value representation of themselves.
func (*BigInt) UnmarshalText ¶
UnmarshalText implements the text Unmarshal interface