Installing multiple Golang versions

1.10 is easy, you can get it with:

go get golang.org/x/build/version/go1.10.3

You will end up with a binary go1.10.3 that will give you access to go1.10.3. The first time you run it, it will ask you to run go1.10.3 download to download the binary distribution for your platform. After that just use go1.10.3 instead of go when you need that version.

To learn more about how this works, read my article Trying Other Go Versions.

1 Like