yanyiwu / gojieba

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

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

Closed huangchanghuai closed 2 months 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"

github-actions[bot] commented 2 months ago

This issue has not been updated for over 1 year and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.

github-actions[bot] commented 2 months ago

This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.