/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew install go
brew install git
brew install mercurial //可选安装
sudo vi /etc/profile
export GOPATH=/Users/iat/workspace/code/go