美文网首页Linux Troubleshooting
vscode调试报错:Build Error: go build

vscode调试报错:Build Error: go build

作者: yangqing | 来源:发表于2022-04-21 16:54 被阅读0次

    使用vscode调试报错:

    Build Error: go build -o c:\Users\yangqing\Documents\Gitee\go_dev\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

        本文链接:https://www.haomeiwen.com/subject/lgtwertx.html