在vscode的settings.json文件中修改:
"go.gopath": "D:\\mygo", "go.goroot": "C:\\Program Files\\Go", "go.testFlags":["-v"], "go.toolsManagement.autoUpdate": true,