会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
伊凡晴天
Time is money.
博客园
首页
新随笔
联系
订阅
管理
2020年12月28日
GoLang 解决VsCode中提示错误 go: cannot find main module, but found .git/config in D:\XXX\src\XXX to create a module there, run: cd .. && go mod init
摘要: 解决方案1: 在项目的根目录下使用如下命令: go mod init (↑ 此命令可能会导致,在使用VsCode保存编辑时产生巨量的卡顿现象,CPU占用过高的情况) 解决方案2: 在Windows PowerShell 中输入如下命令: go env -w GO111MODULE=off
阅读全文
posted @ 2020-12-28 15:01 伊凡晴天
阅读(5166)
评论(0)
推荐(1)
编辑
公告