From 25837393f6928b36dbd445729c0d83b7526f69e7 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 25 Dec 2020 17:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E5=AE=89=E8=A3=85=20Packa?= =?UTF-8?q?ges=20=E6=96=B9=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Language/Go/Basic/Golang_安装_Packages.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Software/Development/Language/Go/Basic/Golang_安装_Packages.md b/Software/Development/Language/Go/Basic/Golang_安装_Packages.md index 293925a..baa859b 100644 --- a/Software/Development/Language/Go/Basic/Golang_安装_Packages.md +++ b/Software/Development/Language/Go/Basic/Golang_安装_Packages.md @@ -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 +```