报错:说明缺少包astaxie
cannot find package "github.com/astaxie/beego" in any of:
/usr/lib/go-1.10/src/github.com/astaxie/beego (from $GOROOT)
/home/vagrant/golang/src/github.com/astaxie/beego (from $GOPATH)
解决办法:下载包
$ go get github.com/astaxie/beego
如果访问github网速慢(其实等一会就好了,不必大费周章,当然你也可以试试下面的方法,反正我是忍了) -> 修改host文件:(参考博客 -> https://blog.csdn.net/lxlmycsdnfree/article/details/82023538)
windoes系统 -> 在host文件文件后加入下列两行
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
ubantu系统 -> 自行百度如何修改host