###设置环境变量 配置 GOROOT 和 GOPATH
创建家目录下的go文件夹: mkdir ~/go
export GOROOT=/usr/share/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin
###