util

package
v0.0.0-...-f10c188 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStr

func BytesToStr(b []byte) string

func Recover

func Recover()

func Safe

func Safe(call func())

Wraps a function-calling with panic recovery

func StrToBytes

func StrToBytes(s string) []byte

func ValueToBytes

func ValueToBytes(codec acodec.Codec, v interface{}) []byte

Types

type Empty

type Empty struct{}

Jump to

Keyboard shortcuts

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