go_version=1.23.2 go_install_dir=/usr/local/ go_download_name=go$go_version.linux-amd64.tar.gz
wget https://golang.google.cn/dl/$go_download_name -P /tmp tar zxf /tmp/$go_download_name -C $go_install_dir
cat > ~/.bash_profile <EOF export PATH=$PATH:/usr/local/go/bin EOF
source ~/.bash_profile
|