Documentation ¶
Index ¶
- Variables
- type Int
- func (slf *Int) Add(i *Int) *Int
- func (slf *Int) AddInt(i int) *Int
- func (slf *Int) AddInt16(i int16) *Int
- func (slf *Int) AddInt32(i int32) *Int
- func (slf *Int) AddInt64(i int64) *Int
- func (slf *Int) AddInt8(i int8) *Int
- func (slf *Int) AddUint(i uint) *Int
- func (slf *Int) AddUint16(i uint16) *Int
- func (slf *Int) AddUint32(i uint32) *Int
- func (slf *Int) AddUint64(i uint64) *Int
- func (slf *Int) AddUint8(i uint8) *Int
- func (slf *Int) Cmp(i *Int) int
- func (slf *Int) Copy() *Int
- func (slf *Int) EqualTo(i *Int) bool
- func (slf *Int) GreaterThan(i *Int) bool
- func (slf *Int) GreaterThanOrEqualTo(i *Int) bool
- func (slf *Int) Int64() int64
- func (slf *Int) IsZero() bool
- func (slf *Int) LessThan(i *Int) bool
- func (slf *Int) LessThanOrEqualTo(i *Int) bool
- func (slf *Int) Mul(i *Int) *Int
- func (slf *Int) MulInt(i int) *Int
- func (slf *Int) MulInt16(i int16) *Int
- func (slf *Int) MulInt32(i int32) *Int
- func (slf *Int) MulInt64(i int64) *Int
- func (slf *Int) MulInt8(i int8) *Int
- func (slf *Int) MulUint(i uint) *Int
- func (slf *Int) MulUint16(i uint16) *Int
- func (slf *Int) MulUint32(i uint32) *Int
- func (slf *Int) MulUint64(i uint64) *Int
- func (slf *Int) MulUint8(i uint8) *Int
- func (slf *Int) Set(i *Int) *Int
- func (slf *Int) SetInt(i int) *Int
- func (slf *Int) SetInt16(i int16) *Int
- func (slf *Int) SetInt32(i int32) *Int
- func (slf *Int) SetInt64(i int64) *Int
- func (slf *Int) SetInt8(i int8) *Int
- func (slf *Int) SetUint(i uint) *Int
- func (slf *Int) SetUint16(i uint16) *Int
- func (slf *Int) SetUint32(i uint32) *Int
- func (slf *Int) SetUint64(i uint64) *Int
- func (slf *Int) SetUint8(i uint8) *Int
- func (slf *Int) String() string
- func (slf *Int) Sub(i *Int) *Int
- func (slf *Int) SubInt(i int) *Int
- func (slf *Int) SubInt16(i int16) *Int
- func (slf *Int) SubInt32(i int32) *Int
- func (slf *Int) SubInt64(i int64) *Int
- func (slf *Int) SubInt8(i int8) *Int
- func (slf *Int) SubUint(i uint) *Int
- func (slf *Int) SubUint16(i uint16) *Int
- func (slf *Int) SubUint32(i uint32) *Int
- func (slf *Int) SubUint64(i uint64) *Int
- func (slf *Int) SubUint8(i uint8) *Int
- func (slf *Int) ToBigint() *big.Int
- type IntRestrain
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IntNegativeOne = NewInt(-1) // 默认初始化的-1值Int,应当将其当作常量使用 IntZero = NewInt(0) // 默认初始化的0值Int,应当将其当作常量使用 IntOne = NewInt(1) // 默认初始化的1值Int,应当将其当作常量使用 IntTen = NewInt(10) // 默认初始化的10值Int,应当将其当作常量使用 IntHundred = NewInt(100) // 默认初始化的100值Int,应当将其当作常量使用 IntThousand = NewInt(1000) // 默认初始化的1000值Int,应当将其当作常量使用 IntTenThousand = NewInt(10000) // 默认初始化的10000值Int,应当将其当作常量使用 )
Functions ¶
This section is empty.
Types ¶
type Int ¶
func NewInt ¶
func NewInt[T IntRestrain](x T, exp ...T) *Int
func (*Int) GreaterThanOrEqualTo ¶
GreaterThanOrEqualTo 大于或等于
func (*Int) LessThanOrEqualTo ¶
LessThanOrEqualTo 小于或等于
Click to show internal directories.
Click to hide internal directories.