This guide will show you how to install multiple versions of go and have the version switch automatically when you change directory.
The two main tools used are asdf which is a general tool version manager with support for multiple languages (like nvm, pyenv, rbenv) and programming tools. And direnv