utiles

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHex

func AddHex(s string) string

func BytesToBnHex added in v0.7.5

func BytesToBnHex(value []byte) string

func BytesToHex

func BytesToHex(b []byte) string

func Debug added in v0.8.6

func Debug(i interface{})

func DecimalFromInterface added in v1.6.12

func DecimalFromInterface(i interface{}) decimal.Decimal

func GetEnumValue added in v1.3.3

func GetEnumValue(e map[string]interface{}) (string, interface{}, error)

GetEnumValue get enum single key && value

func HexToBytes

func HexToBytes(s string) []byte

func IntInSlice

func IntInSlice(a int, list []int) bool

func IntToHex

func IntToHex(i interface{}) string

func IsASCII added in v0.9.2

func IsASCII(b []byte) bool

func IsNil added in v1.3.3

func IsNil(a interface{}) bool

func ReverseBytes

func ReverseBytes(a []byte) []byte

func SliceIndex added in v1.0.11

func SliceIndex(a string, list []string) int

func StringToInt

func StringToInt(s string) int

func ToString

func ToString(i interface{}) string

func TrimHex

func TrimHex(s string) string

func TrueOrElse added in v1.1.44

func TrueOrElse(expect bool, a, b string) string

func U256

func U256(v string) *big.Int

func U8Encode added in v1.1.45

func U8Encode(i int) string

func UniqueSlice

func UniqueSlice(s []string) (list []string)

func UnmarshalAny added in v1.7.0

func UnmarshalAny(raw interface{}, r interface{}) error

UnmarshalAny unmarshal any type

Types

This section is empty.

Directories

Path Synopsis
crypto
ethereum/common/math
Package math provides integer math utilities.
Package math provides integer math utilities.

Jump to

Keyboard shortcuts

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