Documentation
¶
Overview ¶
Package trie implements a in-memory trie tree. Reference: Trie - Wikipedia, the free encyclopedia
Index ¶
- type Trie
- func (tr *Trie) Clear()
- func (tr *Trie) Get(key string) interface{}
- func (tr *Trie) Has(key string) bool
- func (tr *Trie) Len() int
- func (tr *Trie) Map() map[string]interface{}
- func (tr *Trie) Match(pattern string) map[string]interface{}
- func (tr *Trie) Pop(key string) interface{}
- func (tr *Trie) Put(key string, value interface{})
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
}
Trie is the trie tree.
func (*Trie) Match ¶
Match a wildcard like pattern in the trie, the pattern is not a traditional wildcard, only "*" is supported.
Click to show internal directories.
Click to hide internal directories.