https://github.com/gofarsi/gvm
Go version manager tool
https://github.com/gofarsi/gvm
go golang shell
Last synced: about 1 year ago
JSON representation
Go version manager tool
- Host: GitHub
- URL: https://github.com/gofarsi/gvm
- Owner: GoFarsi
- License: other
- Created: 2022-11-10T04:36:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T16:21:40.000Z (over 3 years ago)
- Last Synced: 2025-03-27T17:51:49.076Z (about 1 year ago)
- Topics: go, golang, shell
- Language: Go
- Homepage:
- Size: 8.36 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gvm
Go version manager tool, for install, upgrade or downgrade easy you golang.
[](https://asciinema.org/a/537453)
# install
1. install with go:
```shell
go install github.com/GoFarsi/gvm@latest
```
2. install from [release page](https://github.com/GoFarsi/gvm/releases).
# Example
example commands of gvm tool
### install
install latest version of Go
```shell
gvm install
```
install with backup downloaded Go compiler
```shell
gvm install -b /home/{user}
```
install specific version of Go compiler
```shell
gvm install -v 1.19.3
```
### upgrade
upgrade to latest version Go
```shell
gvm upgrade
```
upgrade with backup downloaded Go compiler
```shell
gvm upgrade -b /home/{user}
```
upgrade to specific version of Go compiler
```shell
gvm upgrade -v 1.19.3
```
### downgrade
downgrade to previous version of Go
```shell
gvm downgrade
```
downgrade with backup downloaded Go compiler
```shell
gvm downgrade -b /home/{user}
```
downgrade to specific version of Go compiler
```shell
gvm upgrade -v 1.19.2
```
### list
list of version with commit id Go compiler
```shell
gvm list
```
list of version with commit id Go compiler in 10 line
```shell
gvm list -l 10
```
### release
show release note link all version of Go compiler
```shell
gvm release
```
show release note specific of version Go compiler
```shell
gvm release -v 1.19
```
### notification
check new version of Go compiler base on your installed version
```shell
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
- [x] gvm for linux
- [ ] mac os
- [ ] windows
- [ ] test code