Install Golang using Gobrew
Rusydy
Posted on January 10, 2023
The Go version manager’s name is gobrew, which is inspired by nodebrew.
Install gobrew
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:
which go
it should return something like:
/Users/username/.gobrew/current/bin/go
If it returns something else, then try to copy the second and third line into ~/zshrc
. Don't forget to source ~/.zshrc
.
Install Go
gobrew install 1.19.5
Set Go version
gobrew use 1.19.5
Uninstall Go
gobrew uninstall 1.19.5
List installed Go versions
gobrew ls
List available Go versions
gobrew ls-remote
💖 💪 🙅 🚩
Rusydy
Posted on January 10, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.