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

设置中搜索:gopls

在这里插入图片描述

settings.json设置里面添加如下:

    "gopls": {
    
    
        "experimentalWorkspaceModule": true
    }

猜你喜欢

转载自blog.csdn.net/weixin_43874301/article/details/120261347