types

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAddress

func ToAddress(input any) common_eth.Address

func ToBigInt

func ToBigInt(input any) *big.Int

func ToDecimal

func ToDecimal(input any) decimal.Decimal

func ToFloat64

func ToFloat64(input any) float64

func ToInt

func ToInt(input any) int

func ToInt64

func ToInt64(input any) int64

func ToLowerString

func ToLowerString(input any) string

func ToString

func ToString(input any) string

Types

type AddressTypes

type AddressTypes interface {
	string | common_eth.Address
}

type BigNumber

type BigNumber interface {
	~*big.Int | ~*big.Float
}

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Number

type Number interface {
	OrderedNumber | BigNumber
}

type Ordered

type Ordered interface {
	OrderedNumber | ~string
}

type OrderedNumber

type OrderedNumber interface {
	Integer | Float
}

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Jump to

Keyboard shortcuts

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