golang版本管理-gvm

拍片哥 / 2023-07-27 / 原文

1 如果你是mac 简单

brew install go

 

2 其他就用 

# zsh
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

# bash use, choose one!
# bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

 

3 使用

安装某个版本用install,使用用use 是不是很简单

gvm install go1.16.14 

gvm use go1.16.14