export GOROOT=/your/goroot/ export GOPATH=/your/gopath export PATH=$GOPATH/bin:$GOROOT/bin:$PATH go get -v github.com/beego/bee cd /your/gopath bee api test