[agent-go] [Bastion] - basic accomplished !
This commit is contained in:
@@ -33,7 +33,10 @@ func (tn *TrieNode) Insert(word string) {
|
||||
}
|
||||
|
||||
func (t *Trie) Insert(word string) {
|
||||
// insert word into trie
|
||||
t.root.Insert(word)
|
||||
// insert to AllFunction List
|
||||
BastionFunctionList = append(BastionFunctionList, word)
|
||||
}
|
||||
func (t *Trie) InsertAll(words []string) {
|
||||
for _, word := range words {
|
||||
|
||||
Reference in New Issue
Block a user