trie

package
v0.0.0-...-8859e38 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

type Trie

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

func Constructor

func Constructor() Trie

func (*Trie) Delete

func (this *Trie) Delete(s string)

func (Trie) Get

func (this Trie) Get(key string) (int, error)

func (Trie) Keys

func (this Trie) Keys() []string

func (Trie) KeysThatMatch

func (this Trie) KeysThatMatch(pattern string) []string

func (Trie) KeysWithPrefix

func (this Trie) KeysWithPrefix(pre string) []string

func (Trie) LongestPrefixOf

func (this Trie) LongestPrefixOf(s string) string

func (*Trie) Put

func (this *Trie) Put(key string, value int)

type Value

type Value int

Jump to

Keyboard shortcuts

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