移植于go-darts 原代码本身存在越界的错误, 进行了修复
This is a GO implementation of Double-ARray Trie System. It's a clone of the C++ version
package main
import (
"fmt"
"github.com/windyy10/go-darts"
)
func main() {
d, err := darts.Import("darts.txt", "darts.lib", true)
if err == nil {
if d.ExactMatchSearch([]rune("考察队员"), 0) {
fmt.Println("考察队员 is in dictionary")
}
}
}