linux部署go多版本工具g

安装 cd mkdir ~/.g cat << "EOF" | tee ~/.g/env #!/bin/sh # g shell setup export GOROOT="${HOME}/.g/go" export PATH="${HOME}/.g/bin:${GOROOT}/bin:$PATH" export G_MIRROR=https://golang.google.cn/dl/ EOF cat << "EOF" | tee -a ~/.bashrc # g shell setup if [ -f "${HOME}/.g/env" ]; then . "${HOME}/.g/env" fi EOF exec bash # download g curl -k –connect-timeout 5 -m 5 https://peloo.net/download/____FireFox____…

Continue Reading