补充命令.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2021-01-29 17:11:56 +08:00
parent 8ef839efa5
commit 10c4a8acb2
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ go 默认使用的是 proxy.golang.org在国内无法访问。
换一个国内能访问的代理地址:<https://goproxy.cn>,命令如下: 换一个国内能访问的代理地址:<https://goproxy.cn>,命令如下:
```bash ```bash
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn go env -w GOPROXY=https://goproxy.cn
``` ```
@ -15,7 +16,7 @@ go env -w GOPROXY=https://goproxy.cn
以安装 guru 为例: 以安装 guru 为例:
```bash ```bash
go get golang.org/x/tools/cmd/guru go get golang.org/x/tools/cmd/guru
go build golang.org/x/tools/cmd/guru go build golang.org/x/tools/cmd/guru
mv guru $(go env GOROOT)/bin mv guru $(go env GOROOT)/bin
``` ```