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

go的环境设置问题,执行

go env -w GO111MODULE=auto

这个是在windows环境下的,linux环境下没有试过

你可能感兴趣的:(go.mod file not found in current directory or any parent directory; see 'go help modules')