zh-rocco / fe-notes

:memo: 前端笔记

Home Page:https://zh-rocco.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

【Go】Windows 10 配置 Go 开发环境

zh-rocco opened this issue · comments

commented

安装

  1. 下载地址
  2. 一路 next
  3. 查看 Go 版本: go version

解决安装 tools / lint 失败问题(VSCode)

Go 默认安装在 C:\Go\ 路径下

  1. C:\Go\src\ 目录下创建 golang.org 文件夹
  2. C:\Go\src\golang.org 目录下创建 x 文件夹
  3. 打开 PowerShell, cdC:\Go\src\golang.org\x 目录
  4. 下载 Go tools 源码 git clone https://github.com/golang/tools.git tools
  5. 下载 Go lint 源码 git clone https://github.com/golang/lint.git lint
  6. 打开 VSCode 安装 ms-vscode.Go 插件, 完成后重启 VSCode
  7. 根据 VSCode 提示安装 Go tools

参考