Skip to main content

Mac

Install Go on Mac with Brew

·1 min
Install Go # brew install go Setup Workspace # It’s considered best practice to use $HOME/go location for your workspace, so let’s do that! mkdir -p $HOME/go/{bin,src,pkg} We created two important folders bin and src that’ll be used for Go. Setup Environment # You have to add to .bashrc or .zshrc (if you’re using zsh) with the following environment variables. (vi ~/.bashrc or vi ~/.zshrc)