• Stars
    star
    124
  • Rank 286,531 (Top 6 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

一键安装最新版golang

go-install


一键安装最新版golang, 国内vps自动设置GOPROXY(goproxy.cn), 支持linux和macOS系统

安装/更新 最新版golang

source <(curl -L https://go-install.netlify.app/install.sh)

安装/更新 指定版本golang

source <(curl -L https://go-install.netlify.app/install.sh) -v 1.13.5

强制更新golang

默认更新策略是已有版本和最新版本一样就不去更新, 要强制更新添加-f

source <(curl -L https://go-install.netlify.app/install.sh) -f

脚本会自动安装goupdate全局命令, 命令和上面的source <(curl -L https://go-install.netlify.app/install.sh)命令等价, 后面可以直接运行goupdate命令来更新即可