Homebrew都是Mac OS X上的軟件包管理工具 ,Homebrew是一個Ruby開發的智能的包管理系統。她能判斷系統包的情況,並可以依賴系統已有的組件,不用從新下載一陣套組件。git
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn’t include with OS X.
地址:http://brew.sh/github
打開'終端'(應用程序-實用工具-終端)
輸入golang
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install golang
brew search golang
輸入brew
命令會顯示命令列表,查看幫助 man brew
ruby