ubuntu下golang开发环境搭建
http://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz
sudo groupadd go sudo useradd -r -g go go sudo passwd go
sudo tar zxvf ~/Downloads/go1.0.3.linux-amd64.tar.gz -C /opt sudo chown -R go:go /opt/go
mkdir ~/gopath sudo gedit /etc/profile
export GOROOT=/opt/go export GOOS=linux export GOARCH=amd64 export GOBIN=/opt/go/bin export GOPATH=$HOME/gopath export PATH=$GOBIN:$PATH
source /etc/profile
go version
如果提示goversioingo1.0.3表示安装成功