使用vscode调试报错:
Build Error: go build -o XXX\src__debug_bin.exe -gcflags all=-N -l .
go: go.mod file not found in current directory or any parent directory; see 'go help modules' (exit status 1)
解决办法:
go env -w GO111MODULE=auto
使用vscode调试报错:
Build Error: go build -o XXX\src__debug_bin.exe -gcflags all=-N -l .
go: go.mod file not found in current directory or any parent directory; see 'go help modules' (exit status 1)
解决办法:
go env -w GO111MODULE=auto