tools

package
v0.0.0-...-67ab4c5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HexPrefix string = "0x"

Variables

This section is empty.

Functions

func CastToInt64

func CastToInt64(value uint64) (int64, error)

func CastToUint64

func CastToUint64(value int64) (uint64, error)

func GetStringValuesFromInt32StringMap

func GetStringValuesFromInt32StringMap(mapping map[int32]string) []string

func SafeAddHexPrefix

func SafeAddHexPrefix(string string) string

SafeAddHexPrefix - adds 0x prefix to a string if it does not have one

func SafeRemoveHexPrefix

func SafeRemoveHexPrefix(string string) string

SafeRemoveHexPrefix - removes 0x prefix from a string if it has one

func SafeUnquote

func SafeUnquote(s string) string

func ToInt64

func ToInt64(value string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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