go安装
go安装
# go安装
wget https://golang.google.cn/dl/go1.18.3.linux-amd64.tar.gz
tar zxvf go1.18.3.linux-amd64.tar.gz
mv go /usr/local/
# 添加环境变量
vim /etc/profile
# export PATH=$PATH:/usr/local/go/bin
# export GOPATH=$HOME/Desktop/go
source /etc/profile
# 设置代理
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct