Documentation ¶
Overview ¶
Aho–Corasick algorithm Refer to https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm https://www.youtube.com/watch?v=O7_w001f58c https://www.youtube.com/watch?v=OFKxWFew_L0
package sources defines the interface of a "dictionary", input a _string_, get the RAW content in the dictionary, might include the definitions/css files/renderers/...
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var G = &Dicts{}
View Source
var Gbold = "**"
View Source
var Gitalic = "*"
Functions ¶
func GetFromLDOCE ¶
func LoadConfig ¶
func LoadConfig() error
func QueryByURL ¶
Types ¶
type AhoCorasick ¶
type AhoCorasick struct {
// contains filtered or unexported fields
}
func (*AhoCorasick) GetRawOutputs ¶
func (ack *AhoCorasick) GetRawOutputs(input string) []RawOutput
type MdxDict ¶
Click to show internal directories.
Click to hide internal directories.