go-flashtext
go-flashtext copied to clipboard
Go-flashtext is a flashtext implement written in Go (Golang). It is based on the FlashText algorithm.
I do not know if this is an implementation issue or a feature. Full sub-patterns are not matched if the text contains the pattern. ### Test code ```go package main...
` if cleanNameTmp, err := tmpCurrent[__key__]; err { cleanName = cleanNameTmp.(string) } currentDict = tmpCurrent continue ` 应改为 ` if cleanNameTmp, err := tmpCurrent[__key__]; err { cleanName = cleanNameTmp.(string) }...
- Added interface, so that keywordProcessor could be saved in struct