# Go 下載
https://golang.org/dl/
# Go 安裝
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
vim /etc/profile
export 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/go
Save and exit your editor. Then, source your ~/.bash_profile.
source ~/.bash_profile