Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

avlhelpers source pure

Functions 2

func IterateByteStringKeysByPrefix

1func IterateByteStringKeysByPrefix(tree avl.ITree, prefix string, cb avl.IterCbFn)
source

Iterate the keys in-order starting from the given prefix. It calls the provided callback function for each key-value pair encountered. If the callback returns true, the iteration is stopped. The prefix and keys are treated as byte strings, ignoring possible multi-byte Unicode runes.

func ListByteStringKeysByPrefix

1func ListByteStringKeysByPrefix(tree avl.ITree, prefix string, maxResults int) []string
source

Get a list of keys starting from the given prefix. Limit the number of results to maxResults. The prefix and keys are treated as byte strings, ignoring possible multi-byte Unicode runes.

Imports 1

Source Files 2