vscode的package main警告

VS code的package main波浪线标红: gopls requires a module at the root of your workspace

settings.json设置里面添加如下

"gopls": {
        "experimentalWorkspaceModule": true
    },

你可能感兴趣的:(每天一则小知识,go语言)