

go version
go version go1.17.2 darwin/amd64
- Navigate to the Go SDK root (execute and find entry), then navigate to inside the Go SDK root.
go envGOROOTsrc/runtime/internal/sys - Edit file and add an entry on a new line: const theVersion = `go1.17`
zversion.go
zversion.go

在Mac上安装Go 1.17.2时遇到了选择GOROOT无效的问题。解决方法包括编辑Go SDK根目录下的`zversion.go`文件,将版本信息更新为`go1.17`,然后重启GoLand,在设置中选择本地GOROOT并指定Go SDK路径。
最低0.47元/天 解锁文章
718

被折叠的 条评论
为什么被折叠?



