util

package
v0.0.0-...-5949c10 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Base58 = basen.NewEncoding("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")
)

Functions

func Base58D

func Base58D(s string) []byte

func Get

func Get(dbPath, dbName string, key []byte) ([]byte, error)

func HexD

func HexD(s string) []byte

func JsonEq

func JsonEq(a, b any) error

func ListDBs

func ListDBs(dir string) ([]string, error)

func OpenDBI

func OpenDBI(env *lmdb.Env, name string) (lmdb.DBI, error)

Types

type KeyValue

type KeyValue struct {
	K []byte
	V []byte
}

func ScanDB

func ScanDB(dbPath, dbName string) ([]KeyValue, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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