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