请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

全局使用go get 报错

老师我全局使用go get 提示
C:\Users\qiqi> go get golang.org/x/tools/cmd/goimports
go: go.mod file not found in current directory or any parent directory.
‘go get’ is no longer supported outside a module.
To build and install a command, use ‘go install’ with a version,
like 'go install example.com/cmd@latest
For more information, see https://golang.org/doc/go-get-install-deprecation
or run ‘go help get’ or ‘go help install’.

正在回答 回答被采纳积分+3

1回答

bobby 2023-07-12 23:47:33

这里提示go get命令已经开始不使用了,你使用go install安装试试

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号