// FindMatchingPrefixValue finds all the matched prefix keys against to the input `key`.
// The values of the matched keys are returned.
FindMatchingPrefixValue finds all the matched prefix keys against to the input `key`.
The values of the matched keys are returned.
// FindMatchingPrefixValue finds all the matched prefix keys against to the input ` key ` . // The values of the matched keys are returned .
func (t *Trie) FindMatchingPrefixValue(key string) []interface{} {
	t.mu.RLock()
	defer t.mu.RUnlock()
	nodes, ok := t.findPrefixMatchNodes(key)
	if ok {
		vals := make([]interface{}, 0, len(nodes))
		for _, n := range nodes {
			vals = append(vals, n.value)
		}
		return vals
	}
	return nil
}
func ( t * Trie ) FindMatchingPrefixValue ( key string ) [ ] interface { } { t . mu . RLock ( ) defer t . mu . RUnlock ( ) nodes , ok := t . findPrefixMatchNodes ( key ) if ok { vals := make ( [ ] interface { } , 0 , len ( nodes ) ) for _ , n := range nodes { vals = append ( vals , n . value ) } return vals } return nil }
FindMatchingPrefixValue finds all the matched prefix keys against to the input `key`.
FindMatchingPrefixValue finds all the matched prefix keys against to the input ` key ` .