MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / newTrieNode

Function newTrieNode

utils/contentfilter/contentfilter.go:133–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func newTrieNode() *TrieNode {
134 return &TrieNode{
135 subNodes: make(map[rune]*TrieNode),
136 }
137}
138
139func (tn *TrieNode) getSubNode(char rune) *TrieNode {
140 return tn.subNodes[char]

Callers 2

NewSensitiveFilterFunction · 0.85
AddKeywordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected