GoLand设置GOROOT报错The selected directory is not a valid home for Go SDK

在设置GOROOT时,点击选择安装目录后,出现如下图的提示:The selected directory is not a valid home for Go SDK

进入Go的安装目录,如D:\Go\src\runtime\internal\sys,打开zversion.go文件,加上自己的版本号即可

const TheVersion = `go1.17.13`
const Goexperiment = ``

你可能感兴趣的:(开发工具,go,1024程序员节)