trie

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trie

type Trie struct {
	// contains filtered or unexported fields
}

func NewTrie

func NewTrie() *Trie

NewTrie allocates and returns a new *Trie.

func (*Trie) Delete

func (trie *Trie) Delete(key []byte) bool

Delete removes keys from the Trie. Returns true if node was found for the given key. If the node or any of its ancestors becomes childless as a result, it is removed from the trie.

func (*Trie) HasKey

func (trie *Trie) HasKey(key []byte) bool

func (*Trie) Put

func (trie *Trie) Put(key []byte)

Put inserts the key into the trie

Jump to

Keyboard shortcuts

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