install go via homebrew
brew install go
add path to system wide profile
brew search package-name
==>Formulaethen install it by typing
brew install package-name
==>Casksthen install it by typing
brew cask install package-nameFor more information visit the Homebrew brew website Homebrew website
-bash: brew: command not foundHomebrew is not yet installed, please continue at Step 3.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
For more information visit the Homebrew website