英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论