The Most Boring Article About How To Install Multiple Versions of Go.
2 min readJul 14, 2022
If you ever need to use a different version Golang for a project. You should look into using GVM, it is similar to NVM (Node Version Manager) however it will manage specific versions of the Go compiler instead of Node’s Runtime.
Getting Started with How to Install Multiple Versions of Golang on Your OS?
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
The installer will begin to download the correct files to initialize GVM.
Cloning from https://github.com/moovweb/gvm.git to /Users/.gvm
The installer will setup permissions for your current Go Compiler Version.
Created profile for existing install of Go at “/usr/local/go”
The installer will then ask you to restart your terminal session.
Installed GVM v1.0.22Please restart your terminal session or to get started right away run
Use this shortcut below to re-initialize your terminal with GVM.
`source $HOME/.gvm/scripts/gvm`