关于VS code报错 gopls requires a module at the root of your workspace

关于此错误解决办法:打开setting.json,添加gopls项并设置它的

build.experimentalWorkspaceModule为true.具体直观如图

附我的VSCode版本信息:

猜你喜欢

转载自blog.csdn.net/ferrarifomaul/article/details/118239235