tree

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trie

type Trie interface {
	Add(word string, value interface{}) bool
	List() []string
	Clear()
	Contains(word string) bool
	ContainsPrefix(prefix string) bool
	LPM(longerWord string) (TrieNode, bool)
	Delete(word string) bool
}

func NewTrie

func NewTrie() Trie

func NewTrieCC

func NewTrieCC() Trie

type TrieNode

type TrieNode interface {
	Word() string
	Value() interface{}
}

Jump to

Keyboard shortcuts

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