设置 GOPROXY
后,go get
下载的第三方库找不到
console.go:4:8: cannot find module providing package \
github.com/c-bata/go-prompt: working directory is not part of a module
解决:
在项目根目录下执行命令
go mod init go-prompt
go mod edit -require github.com/c-bata/go-prompt@latest
Ref:
网友评论