Documentation ¶
Overview ¶
inspire from - https://godoc.org/golang.org/x/text/internal/triegen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a fast thread-safe in memory cache optimized for big number of entries.
func (*Cache) Del ¶
Del deletes value for the given k from the cache.
k contents may be modified after returning from Del.
func (*Cache) Get ¶
Get appends value by the key k to dst and returns the result. Get allocates new byte slice for the returned value if dst is nil. Get returns only values stored in c via Set. k contents may be modified after returning from Get.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node trie tree node container carries value and children.
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
Trie is a trie container.
func (*Trie) PrefixMatch ¶
Click to show internal directories.
Click to hide internal directories.