Documentation
¶
Index ¶
- type BigInt
- func (b *BigInt) Add(n *big.Int)
- func (b BigInt) Equals(n *big.Int) bool
- func (b BigInt) Gt(n *big.Int) bool
- func (b BigInt) Gte(n *big.Int) bool
- func (b BigInt) Int() *big.Int
- func (b BigInt) Int64() int64
- func (b BigInt) Lt(n *big.Int) bool
- func (b BigInt) Lte(n *big.Int) bool
- func (b BigInt) MarshalJSON() ([]byte, error)
- func (b BigInt) MarshalText() ([]byte, error)
- func (b *BigInt) Scan(src interface{}) error
- func (b *BigInt) SetString(s string, base int) bool
- func (b BigInt) String() string
- func (b *BigInt) Sub(n *big.Int)
- func (b BigInt) Uint64() uint64
- func (b *BigInt) UnmarshalJSON(text []byte) error
- func (b *BigInt) UnmarshalText(text []byte) error
- func (b BigInt) Value() (driver.Value, error)
- type HexBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigInt ¶
BigInt is a type that represents big.Int that may be null, this type is used for JSON/Database marshalling.
For JSON values we encoded BigInt's as strings.
For Database values we encoded BigInt's as NUMERIC(78).
func NewBigIntFromString ¶
func ToBigIntArray ¶
func ToBigIntFromInt64 ¶
func (BigInt) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (BigInt) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*BigInt) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*BigInt) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type HexBytes ¶
type HexBytes []byte
func (HexBytes) BytesValue ¶
BytesValue implements pgx/pgtype.BytesValuer
func (HexBytes) MarshalText ¶
MarshalText implements encoding.TextMarshaler
func (*HexBytes) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*HexBytes) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.