Switch between installed Go versions by setting a specific version as the default.
gvm use [version]
The use command allows you to switch between different installed Go versions by creating a symbolic link to the specified version. This makes the selected version the default Go version for your system.
gvm use go1.19
When you run gvm use
, the following happens:
~/.gvm/go
to the selected versiongvm list
to see installed versions)The use command provides clear error messages for:
After using a version, you can verify it’s active by running:
go version
This should display the version you just set as default.