utils

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyBytes

func CopyBytes(source []byte, size ...int) []byte

CopyBytes returns a copy of the source slice. If size is not passed, the result slice has same size as the source slice.

func KeyPrefixUpperBound

func KeyPrefixUpperBound(start []byte) []byte

KeyPrefixUpperBound returns the upper bound (not included in the prefix set) for a prefix range scan.

func SortSlice

func SortSlice(slice []string, iterDirection ...kvstore.IterDirection) []string

SortSlice sorts a slice according to the given IterDirection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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