util

package module
v0.0.0-...-44fafbe Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHexString

func DecodeHexString(hexString string) []byte

func DecodeHexStringErr

func DecodeHexStringErr(hexString string) ([]byte, error)

func DecodeHexStringPad

func DecodeHexStringPad(s string) []byte

func DecodeHexStringPadErr

func DecodeHexStringPadErr(hexString string) ([]byte, error)

func EncodeHex

func EncodeHex(bytes []byte) string

func EncodeHexWithPrefix

func EncodeHexWithPrefix(bytes []byte) string

func IsHexStringRelaxed

func IsHexStringRelaxed(s string) bool

func RemoveHexPrefix

func RemoveHexPrefix(s string) string

func RemoveHexPrefixPad

func RemoveHexPrefixPad(s string) string

func RemoveZeroHex

func RemoveZeroHex(s string) []byte

func ToBigInt

func ToBigInt(v string) *big.Int

func ToInt32

func ToInt32(v string) int32

func ToInt64

func ToInt64(v string) int64

func ToUint32

func ToUint32(v string) uint32

func ToUint64

func ToUint64(v string) uint64

func ToUint8

func ToUint8(v string) uint8

Types

This section is empty.

Source Files

  • hex.go
  • int.go

Directories

Path Synopsis
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