1、安装编译环境
$ curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
$ tar -C /usr/local -zxvf go1.9.linux-amd64.tar.gz
$ mkdir -p ~/go/src
$ echo "export GOPATH=$HOME/go" >> ~/.bashrc
$ echo "export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin" >> ~/.bashrc
$ source ~/.bashrc
$ go version
2、下载,编译用户工程
go get github.com/gwuhaolin/livego
go build
go get github.com/gwuhaolin/livego
go build