Documentation ¶
Index ¶
- Variables
- type Int
- func (x Int) Base() int
- func (x Int) BigInt() *big.Int
- func (x Int) Bytes() []byte
- func (x Int) MarshalText() ([]byte, error)
- func (x *Int) Scan(src any) error
- func (x *Int) SetBaseTo10()
- func (x *Int) SetBaseTo16()
- func (x Int) String() string
- func (x *Int) UnmarshalText(text []byte) error
- func (x Int) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilSource = errors.New("src must not be nil") ErrNonBytesSource = errors.New("the type of src must be []byte") ErrEmptyBytesSource = errors.New("the length of src in bytes must be greater than 0") ErrOverlengthBytesSource = errors.Errorf("the length of src in bytes must be %d or less", maxByteLength) ErrNegativeValue = errors.New("the value must be 0 or more") ErrOverlengthValue = errors.Errorf("the length of the value in bits must be %d or less", maxBitLength) )
Functions ¶
This section is empty.
Types ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (Int) MarshalText ¶
func (*Int) SetBaseTo10 ¶
func (x *Int) SetBaseTo10()
func (*Int) SetBaseTo16 ¶
func (x *Int) SetBaseTo16()
func (*Int) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.