企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## go配置 安装 go 插件 在`setting.json`中添加 主要添加 `go.formatTool`,`go.goroot`,`go.toolsGopath` ``` { "go.buildOnSave": "workspace", "go.lintOnSave": "package", "go.vetOnSave": "package", "go.buildTags": "", "go.buildFlags": [], "go.lintFlags": [], "go.vetFlags": [], "go.coverOnSave": false, "go.useCodeSnippetsOnFunctionSuggest": false, "go.formatOnSave": true, "go.formatTool": "goreturns", "go.goroot": "/usr/local/Cellar/go/1.11.2/libexec", "go.gopath": "/Users/idcpj/go/", "go.toolsGopath":"/usr/local/Cellar/go/1.11.2/libexec/pkg/tool/darwin_amd64", "go.gocodeAutoBuild": false, } ``` ### 用Delve调试Go项目 [教程](https://www.jianshu.com/p/25a2e6b52457) ``` brew install go-delve/delve/delve dlv version 检测是安装 ```