Skip to content

Latest commit

 

History

History
92 lines (81 loc) · 1.71 KB

README.md

File metadata and controls

92 lines (81 loc) · 1.71 KB

gvm

Go version manager tool, for install, upgrade or downgrade easy you golang.

asciicast

install

  1. install with go:
go install github.com/GoFarsi/gvm@latest
  1. install from release page.

Example

example commands of gvm tool

install

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

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

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

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

release

show release note link all version of Go compiler

gvm release

show release note specific of version Go compiler

gvm release -v 1.19

notification

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.

TODO

  • gvm for linux
  • mac os
  • windows
  • test code