yanyiwu / gojieba

"结巴"中文分词的Golang版本
MIT License
2.39k stars 302 forks source link

I used it in the goframe framework project. In the Ubuntu, the compilation will report an error #88

Open huangchanghuai opened 2 years ago

huangchanghuai commented 2 years ago

The error info:

2022-02-23 01:08:29.566 go build -o ./bin/linux_amd64/main .\main.go 
2022-02-23 01:08:31.543 failed to build, os:linux, arch:amd64, error:
# gaosomebloggfv1/app/service
app\service\search.go:16:15: undefined: gojieba.NewJieba

I've already installed it and "go mod tidy"

tt90cc commented 1 year ago

I has same error, but build on mac with the command of "go mod tidy && GOOS=linux GOARCH=amd64 go build -o main"