trie.go 214 B

1234567891011
  1. package trie
  2. type Trier interface {
  3. Put(key string, value interface{}) bool
  4. Find(in string, acc string) (key string, value interface{})
  5. Get(key string) interface{}
  6. }
  7. func New() Trier {
  8. return NewRuneTrie()
  9. }