Documentation
¶
Index ¶
- Variables
- type Radix
- func (r *Radix) AutoComplete(s string, wholeWord bool) ([]string, error)
- func (r *Radix) AutoCompleteBytes(bs []byte, wholeWord bool) ([][]byte, error)
- func (r *Radix) Insert(s string, v ...interface{}) bool
- func (r *Radix) InsertBytes(bs []byte, val ...interface{}) bool
- func (r *Radix) LookUp(s string) (interface{}, error)
- func (r *Radix) LookUpBytes(bs []byte) (interface{}, error)
- func (r *Radix) Remove(s string) bool
- func (r *Radix) RemoveBytes(bs []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatchFound = errors.New("no match found")
ErrNoMatchFound self-explanatory
Functions ¶
This section is empty.
Types ¶
type Radix ¶
type Radix struct {
Path []byte
// contains filtered or unexported fields
}
Radix Radix
func (*Radix) AutoComplete ¶
AutoComplete will complete the word you are looking for and return them as string
func (*Radix) AutoCompleteBytes ¶
AutoCompleteBytes will complete the word you are looking for and return them as slice of bytes
func (*Radix) InsertBytes ¶
InsertBytes to the Radix Tree
func (*Radix) LookUpBytes ¶
LookUpBytes will return the node matching
func (*Radix) RemoveBytes ¶
RemoveBytes an item, require slice of byte
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
autocomplete
command
|
|
|
insert
command
|
|
|
lookup
command
|
|
|
remove
command
|
Click to show internal directories.
Click to hide internal directories.