diff --git a/Software/Development/Language/Go/Basic/Golang_安装_Packages.md b/Software/Development/Language/Go/Basic/Golang_安装_Packages.md index baa859b..7b7bc53 100644 --- a/Software/Development/Language/Go/Basic/Golang_安装_Packages.md +++ b/Software/Development/Language/Go/Basic/Golang_安装_Packages.md @@ -7,6 +7,7 @@ go 默认使用的是 proxy.golang.org,在国内无法访问。 换一个国内能访问的代理地址:,命令如下: ```bash +go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn ``` @@ -15,7 +16,7 @@ go env -w GOPROXY=https://goproxy.cn 以安装 guru 为例: ```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 mv guru $(go env GOROOT)/bin ```