在CentOS中配置Golang,要点如下:
/usr/local
~/.bashrc
~/.bash_profile
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
source
go mod init
export GOPROXY=https://goproxy.io