记录 | go.mod file not found in current directory or any parent directory

go build 报错

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

解决方案:

 go env -w GO111MODULE=auto 

你可能感兴趣的:(踩坑记录,golang,开发语言,go.mod)