trie

package
v0.0.0-...-8bb615b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Unlicense Imports: 2 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

func (*Trie) Count

func (t *Trie) Count() int

func (*Trie) Dump

func (t *Trie) Dump(w io.Writer)

func (*Trie) Get

func (t *Trie) Get(key string) (interface{}, bool)

func (*Trie) GetLongestPrefix

func (t *Trie) GetLongestPrefix(key string) (string, interface{})

func (*Trie) Put

func (t *Trie) Put(key string, value interface{})

Jump to

Keyboard shortcuts

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