sudo apt-get install python-software-properties sudo add-apt-repository ppa:gophers/go sudo apt-get update sudo apt-get install golang-stable git-core mercurial
引用自 :https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/01.1.mdpython