A simple Go Version Management Tool with zero dependencies
curl -sL https://raw.githubusercontent.com/lokesh-balla/gvm/main/install.sh | sh
Once installed, you can use gvm
to manage Go versions:
# List available Go versions
gvm list
# Install a specific version
gvm install 1.21.0
# Use a specific version
gvm use 1.21.0
# Uninstall a version
gvm uninstall 1.21.0
gvm provides the following commands:
For detailed information about each command, visit the commands section.
You can get help for any command using:
gvm --help
gvm [command] --help
git clone https://github.com/lokesh-balla/gvm.git && cd gvm
go build -o gvm main.go
To uninstall gvm
, run the following command:
```bash rm -rf ~/.gvm