trie

package
v0.0.0-...-f36bde2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2017 License: MIT 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) Add

func (t *Trie) Add(data interface{}, prefix ...string)

func (*Trie) Clear

func (t *Trie) Clear()

func (*Trie) IsEmpty

func (t *Trie) IsEmpty() bool

func (*Trie) Print

func (t *Trie) Print()

func (*Trie) Retrieve

func (t *Trie) Retrieve(prefix ...string) interface{}

func (*Trie) ToDataMap

func (t *Trie) ToDataMap() map[string]interface{}

type TrieElement

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

func NewTrieElement

func NewTrieElement() *TrieElement

func (*TrieElement) Add

func (e *TrieElement) Add(data interface{}, prefix ...string)

func (*TrieElement) GetJsonDump

func (e *TrieElement) GetJsonDump() string

func (*TrieElement) Retrieve

func (e *TrieElement) Retrieve(prefix ...string) interface{}

func (*TrieElement) ToDataMap

func (e *TrieElement) ToDataMap(prefix string, dataMap map[string]interface{})

Jump to

Keyboard shortcuts

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