按照官方网站步骤:
1, git config --global http.sslVerify false
2, go get github.com/astaxie/beego
1, git config --global http.sslVerify false
2, go get github.com/astaxie/beego
依然存在错误如下:
package golang.org/x/crypto/acme/autocert: unrecognized import path "golang.org/x/crypto/acme/autocert" (https fetch: Get https://golang
.org/x/crypto/acme/autocert?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
分析原因: 依赖库下载失败
解决方法:
1, 在GOPATH目录下创建文件夹crypto
mkdir -p $GOPATH/src/golang.org/x
2, 进入文件夹
cd $GOPATH/src/golang.org/x
3, 下载crypto
git clone https://github.com/golang/crypto crypto
4, 安装
go install crypto
依赖库安装成功,重新下载beego
原文:http://blog.51cto.com/13503908/2150897