出现这个问题的原因是因为你的项目中缺乏 xxx.mod 文件,你只需要执行一下
go mod init xxxx 命令就可以了,xxx 随便起名字去,不过一般设置成自己的项目名
go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘
最新推荐文章于 2024-05-16 23:16:45 发布
出现这个问题的原因是因为你的项目中缺乏 xxx.mod 文件,你只需要执行一下
go mod init xxxx 命令就可以了,xxx 随便起名字去,不过一般设置成自己的项目名