补充 安装 Packages 方法.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-12-25 17:38:22 +08:00
parent f0b30c4e32
commit 25837393f6
1 changed files with 10 additions and 0 deletions

View File

@ -9,3 +9,13 @@ go 默认使用的是 proxy.golang.org在国内无法访问。
```bash
go env -w GOPROXY=https://goproxy.cn
```
## 2.安装 Packages
以安装 guru 为例:
```bash
go get golang.org/x/tools/cmd/guru
go build golang.org/x/tools/cmd/guru
mv guru $(go env GOROOT)/bin
```