strhelper

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(s string) string

Clean returns a string without control characters and without invalid unicode runes

func HexStrToBigInt

func HexStrToBigInt(hexString string) (*big.Int, error)

HexStrToBigInt transforms a hex sting like "0xff" to a big.Int. Arbitrary length values are possible.

func HexStrToInt64

func HexStrToInt64(hexString string) (int64, error)

HexStrToInt64 transforms a hex sting like "0xff" to an int64 like 15. The maximum value is "0x7fffffffffffffff", respectively 9223372036854775807

func Trim0x

func Trim0x(PrefixedString string) string

Trim "0x" from a string. Do nothing if not present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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