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 installinstall with backup downloaded Go compiler
gvm install -b /home/{user}install specific version of Go compiler
gvm install -v 1.19.3upgrade to latest version Go
gvm upgradeupgrade with backup downloaded Go compiler
gvm upgrade -b /home/{user}upgrade to specific version of Go compiler
gvm upgrade -v 1.19.3downgrade to previous version of Go
gvm downgradedowngrade with backup downloaded Go compiler
gvm downgrade -b /home/{user}downgrade to specific version of Go compiler
gvm upgrade -v 1.19.2list of version with commit id Go compiler
gvm listlist of version with commit id Go compiler in 10 line
gvm list -l 10show release note link all version of Go compiler
gvm releaseshow release note specific of version Go compiler
gvm release -v 1.19check new version of Go compiler base on your installed version
gvm notificationnote:
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