大家好,我安装好golang和VS code后准备输入第一行命令,却在输出一栏中出现问题,请各位解决?
Starting linting the current package at d:\glanglang\src
Error while running tool: C:\Users\Administrator\go\bin\staticcheck.exe
err: exit status 1: stderr: package unsafe is not in GOROOT (D:\Program Files\Go\bin\src\unsafe)
你环境没配置好
Go 1.13 及以上(推荐)
打开你的终端并执行
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct