utils

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Arch32 = 4
	Arch64 = 8
)

Variables

This section is empty.

Functions

func CaptureStdout added in v0.1.13

func CaptureStdout(wrapped func() error) ([]byte, error)

CapturesStdout captures stdout from the wrapped function

func IsHexString added in v0.1.13

func IsHexString(number string) bool

IsHexString returns true if the input is a hex string

func ParseHexArrayString added in v0.1.14

func ParseHexArrayString(value string) ([]byte, error)

ParseHexArrayString returns a byte array from the input hex string (taking the strict but case insensitive form "\xff...\xff")

func ParseNumber added in v0.1.11

func ParseNumber(number string) (int, error)

ParseNumber parses a hex or decimal number

Types

This section is empty.

Jump to

Keyboard shortcuts

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