Fix: domain trie search

This commit is contained in:
Dreamacro
2022-01-26 22:28:13 +08:00
parent cfe7354c07
commit b1a639feae
3 changed files with 11 additions and 3 deletions

View File

@ -2,8 +2,8 @@ package trie
// Node is the trie's node
type Node struct {
Data interface{}
children map[string]*Node
Data interface{}
}
func (n *Node) getChild(s string) *Node {