utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ClientVersion = "zkvote/0.0.1"

Variables

This section is empty.

Functions

func AssertError

func AssertError(err error, msg string) bool

AssertError ...

func AssertWarn

func AssertWarn(err error, msg string) bool

AssertWarn ...

func CheckHex

func CheckHex(s string) error

CheckHex .

func CloseLog

func CloseLog()

CloseLog ...

func GetBigIntFromHexString

func GetBigIntFromHexString(hex string) *big.Int

func GetBytesFromHexString

func GetBytesFromHexString(hex string) []byte

func GetHexStringFromBigInt

func GetHexStringFromBigInt(b *big.Int) string

func GetHexStringFromBytes

func GetHexStringFromBytes(b []byte) string

func Goid

func Goid() int

func LogDebug

func LogDebug(s string)

LogDebug ...

func LogDebugf

func LogDebugf(s string, args ...interface{})

LogDebugf ...

func LogError

func LogError(s string)

LogError ...

func LogErrorf

func LogErrorf(s string, args ...interface{})

LogErrorf ...

func LogFatal

func LogFatal(s string)

LogFatal ...

func LogFatalf

func LogFatalf(s string, args ...interface{})

LogFatalf ...

func LogInfo

func LogInfo(s string)

LogInfo ...

func LogInfof

func LogInfof(s string, args ...interface{})

LogInfof ...

func LogWarning

func LogWarning(s string)

LogWarning ...

func LogWarningf

func LogWarningf(s string, args ...interface{})

LogWarningf ...

func OpenLog

func OpenLog()

OpenLog ...

func Prepend0x

func Prepend0x(key string) string

Prepend0x ...

func Remove0x

func Remove0x(key string) string

Remove0x ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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