Go version manager tool, for install, upgrade or downgrade easy you golang.
- install with go:
go install github.com/GoFarsi/gvm@latest
- install from release page.
example commands of gvm tool
install latest version of Go
gvm install
install with backup downloaded Go compiler
gvm install -b /home/{user}
install specific version of Go compiler
gvm install -v 1.19.3
upgrade to latest version Go
gvm upgrade
upgrade with backup downloaded Go compiler
gvm upgrade -b /home/{user}
upgrade to specific version of Go compiler
gvm upgrade -v 1.19.3
downgrade to previous version of Go
gvm downgrade
downgrade with backup downloaded Go compiler
gvm downgrade -b /home/{user}
downgrade to specific version of Go compiler
gvm upgrade -v 1.19.2
list of version with commit id Go compiler
gvm list
list of version with commit id Go compiler in 10 line
gvm list -l 10
show release note link all version of Go compiler
gvm release
show release note specific of version Go compiler
gvm release -v 1.19
check new version of Go compiler base on your installed version
gvm notification
note:
you can set cronjob for check new version Go compiler using command :
(crontab -l ; echo "* */6 * * * gvm notification >/dev/null 2>&1")| crontab -
every 6 hours.
- gvm for linux
- mac os
- windows
- test code