util

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatBytes

func ConcatBytes(margin int, bzs ...[]byte) []byte

ConcatBytes creates a new slice by merging list of bytes and leaving empty amount of margin bytes at the end

func KeyWithUint32 added in v6.6.0

func KeyWithUint32(prefix []byte, n uint32) []byte

KeyWithUint32 concatenates prefix big endian serialized n value. No zero byte is appended at the end.

func KeyWithUint64 added in v6.6.0

func KeyWithUint64(prefix []byte, n uint64) []byte

KeyWithUint64 concatenates prefix big endian serialized n value. No zero byte is appended at the end.

func Panic

func Panic(err error)

Panic panics on error

Types

This section is empty.

Directories

Path Synopsis
Package bpmath provides types and functions for doing basis point operations with math.Int.
Package bpmath provides types and functions for doing basis point operations with math.Int.
Package checkers provides functions and structures to verify common types and aggregate errors.
Package checkers provides functions and structures to verify common types and aggregate errors.
Package genmap provides generic functions for manipulating maps.
Package genmap provides generic functions for manipulating maps.
Package store implements KVStore getters and setters for various types.
Package store implements KVStore getters and setters for various types.

Jump to

Keyboard shortcuts

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