go.mod file not found in current directory or any parent directory; see ‘go help modules‘

Posted J哥.

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了go.mod file not found in current directory or any parent directory; see ‘go help modules‘相关的知识,希望对你有一定的参考价值。

大家好,我是J哥

上面的情况是go的环境设置问题,执行

go env -w GO111MODULE=auto

以上是关于go.mod file not found in current directory or any parent directory; see ‘go help modules‘的主要内容,如果未能解决你的问题,请参考以下文章

go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘

go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘

go 解决no required module provides package xxx: go.mod file not found in current directory or any pare

go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘

go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘

解决go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘