num

package
v6.0.0-...-9259e93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int big.Int

Int is a wrapper of sorts around big.Int. One of the intentions is to prevent users from being directly exposed to the big.Int API and usage of BigInt(). This is due to big.Int introducing bugs if not careful with its usage and its API.

func Int64

func Int64(v int64) Int

func New

func New(s string) (Int, bool)

func Uint64

func Uint64(v uint64) Int

func (Int) Add

func (i Int) Add(that Int) Int

func (Int) BigFloat

func (i Int) BigFloat() *big.Float

func (Int) BigInt

func (i Int) BigInt() *big.Int

func (Int) Div

func (i Int) Div(that Int) Int

func (Int) Equal

func (i Int) Equal(that Int) bool

func (Int) GreaterThan

func (i Int) GreaterThan(that Int) bool

func (Int) Int

func (i Int) Int() int

func (Int) Int64

func (i Int) Int64() int64

func (Int) LessThan

func (i Int) LessThan(that Int) bool

func (Int) MarshalDynamoDBAttributeValue

func (i Int) MarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

func (Int) Mul

func (i Int) Mul(that Int) Int

func (Int) String

func (i Int) String() string

func (Int) Sub

func (i Int) Sub(that Int) Int

func (Int) Uint64

func (i Int) Uint64() uint64

func (*Int) UnmarshalDynamoDBAttributeValue

func (i *Int) UnmarshalDynamoDBAttributeValue(item *dynamodb.AttributeValue) error

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL