This process would likely apply to other Homebrew formula also.
First search for your desired package:
brew search goYou should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:
==> Formulae
go ✔
go@1.10
go@1.11
go@1.9Then install the desired version:
brew install go@1.10Remember that you can have more than one package installed at the same time, but you cannot have them all available at the same time.
So if you have the latest/generic go package already installed you need to unlink it first:
brew unlink goAnd then you can link a different version:
brew link go@1.10In some cases you may need to link them with the --force and --overwrite options:
brew link --force --overwrite go@1.10