目前哪个IDE可以支持Go 1.18工作区?

huangapple go评论84阅读模式
英文:

which ide now can support go1.18 workspace

问题

我使用以下命令来初始化工作空间:

go work init mypkg example

我的代码可以运行,但是 Goland 2021.3 对其支持不太好。有没有解决的办法?

英文:

I use this command to init workspace

go work init mypkg example

My code can run but the goland 2021.3 can not support it very well.Is there a way to solve it?

答案1

得分: 3

我相信Goland有自己的解析实现,所以你需要等待官方更新。

如果你想尝试go1.18beta,你可以使用VSCode或任何其他使用gopls编辑器/IDE。VSCode中的Go扩展使用gopls,它对泛型工作区提供了一些支持。目前它还不完美,但这在测试版软件中是可以预期的。

英文:

I believe goland has its own parsing implementation, so you will have to wait for an official update.

If you want to try out go1.18beta you can use VSCode or any other editor/IDE which uses gopls. The go extension in VSCode uses gopls which provides some support for generics and workspaces. It is not perfect yet, but that is to be expected with beta software.

huangapple
  • 本文由 发表于 2022年1月2日 03:45:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/70551406.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定