How to switch go version?

Sometimes, you may need multiple Go versions for testing, or it may depend on each project. While IDEs such as Goland can be setup per project, but how do you set up multiple Go versions for use in the terminal?

I have many Go versions on local

  • I have many Go version on local.
I have many Go versions on local
  • Then I export part that I want user
Then I export part that I want to use
  • Here you go!
Here you go!