go环境配置
#下载最新版本
wget https://golang.google.cn/dl/go1.17.8.linux-amd64.tar.gz --no-check-certificate
#解压
tar -zxvf go1.17.8.linux-amd64.tar.gz /usr/local/
vim /etc/profile
export GOROOT=/usr/local/go
export GO_HOME=$GOROOT
export GOPATH=/home/gopath
export PATH=$GO_HOME/bin:$PATH
source /etc/profile
go version
go version go1.17.8 linux/amd64
mkdir -p /home/gopath && cd /home/gopath
mkdir -p src pkg bin