[agent-go] [Bastion] - basic accomplished !

This commit is contained in:
zeaslity
2024-04-18 15:20:19 +08:00
parent 8e43f1f90f
commit 314b6054d3
14 changed files with 467 additions and 204 deletions

View File

@@ -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 {