The Go version manager’s name is gobrew, which is inspired by nodebrew.
curl -sLk https://git.io/gobrew | sh - export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH" export GOROOT="$HOME/.gobrew/current/go"
to make sure it installed properly:
it should return something like:
If it returns something else, then try to copy the second and third line into
~/zshrc. Don't forget to
gobrew install 1.19.5
gobrew use 1.19.5
gobrew uninstall 1.19.5