// FindByPrefixAll returns all the keys and values starting with `prefix`.
FindByPrefixAll returns all the keys and values starting with `prefix`.
// FindByPrefixAll returns all the keys and values starting with ` prefix ` .
func (t *Trie) FindByPrefixAll(prefix string) map[string]interface{} {
	t.mu.RLock()
	defer t.mu.RUnlock()
	node := findNode(t.root, []rune(prefix))
	if node == nil {
		return nil
	}
	return collectAll(node)
}
func ( t * Trie ) FindByPrefixAll ( prefix string ) map [ string ] interface { } { t . mu . RLock ( ) defer t . mu . RUnlock ( ) node := findNode ( t . root , [ ] rune ( prefix ) ) if node == nil { return nil } return collectAll ( node ) }
FindByPrefixAll returns all the keys and values starting with `prefix`.
FindByPrefixAll returns all the keys and values starting with ` prefix ` .