# Go 下载
https://golang.org/dl/
# Go 安装
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gzvim /etc/profileexport PATH=$PATH:/usr/local/go/bin
# go 提速
vim ~/.bashrc
或 ~/.bash_profile
# 启用 Go Modules 功能
export GO111MODULE=on# 配置 GOPROXY 环境变量export GOPROXY=https://goproxy.io
# 设置GO的环境变量
Edit your ~/.bash_profile to add the following line:export GOPATH=$HOME/goSave and exit your editor. Then, source your ~/.bash_profile.source ~/.bash_profile