// All returns a map for all matched keys and values.
// All the key of the map starts with `prefix`.
All returns a map for all matched keys and values.
All the key of the map starts with `prefix`.
// All returns a map for all matched keys and values . // All the key of the map starts with ` prefix ` .
func (t *Trie) All() map[string]interface{} {
	t.mu.RLock()
	defer t.mu.RUnlock()
	node := findNode(t.root, []rune(""))
	if node == nil {
		return nil
	}
	return collectAll(node)
}
func ( t * Trie ) All ( ) map [ string ] interface { } { t . mu . RLock ( ) defer t . mu . RUnlock ( ) node := findNode ( t . root , [ ] rune ( " " ) ) if node == nil { return nil } return collectAll ( node ) }
All returns a map for all matched keys and values.
All returns a map for all matched keys and values .