我已经编写了一个程序并在代码的开头声明了包,但它标记为红色,如下所示:main.go
当我将鼠标悬停在包上时,它会显示以下内容:
gopls requires a module at the root of your workspace.
You can work with multiple modules by opening each one as a workspace folder.
Improvements to this workflow will be coming soon, and you can learn more here:
https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.
我需要有关如何传递此错误的帮助。多谢。
RISEBY
收到一只叮咚
红糖糍粑
相关分类