{ "version": "0.2.0", "configurations": [ { "name": "golang", "type": "go", "request": "launch", "mode": "auto", //当运行单个文件时{workspaceFolder}可改为{file} "program": "${workspaceFolder}", "env": {}, "args": [] } ] }