【Go】Windows 10 配置 Go 开发环境
zh-rocco opened this issue · comments
安装
- 下载地址
- 一路
next
- 查看 Go 版本:
go version
解决安装 tools / lint 失败问题(VSCode)
Go 默认安装在 C:\Go\
路径下
- 在
C:\Go\src\
目录下创建golang.org
文件夹 - 在
C:\Go\src\golang.org
目录下创建x
文件夹 - 打开 PowerShell,
cd
至C:\Go\src\golang.org\x
目录 - 下载 Go tools 源码
git clone https://github.com/golang/tools.git tools
- 下载 Go lint 源码
git clone https://github.com/golang/lint.git lint
- 打开 VSCode 安装
ms-vscode.Go
插件, 完成后重启 VSCode - 根据 VSCode 提示安装 Go tools