util

package
v0.0.0-...-0b06f50 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: BSD-3-Clause Imports: 4 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filePath string) bool

func HasPrefix

func HasPrefix(key, prefix []byte) bool

HasPrefix checks if the given key was prefixed with the given prefix using the PrefixKey function.

func IgnoreErrNotExists

func IgnoreErrNotExists(err error) error

func PrefixKey

func PrefixKey(keys ...[]byte) []byte

func PrefixRangeEnd

func PrefixRangeEnd(prefix []byte) []byte

Returns the bytes that mark the end of the key range for the given prefix.

func UnprefixKey

func UnprefixKey(key, prefix []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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