起初我以为它作为像Java行家 它有它自己的存储库,并下载依赖性golang“go get comand”这是如何工作的?
但去混帐似乎与git的集市依赖像版本控制系统。
go get launchpad.net/mgo
go: missing Bazaar command. See http://golang.org/s/gogetcmd
package launchpad.net/mgo: exec: "bzr": executable file not found in $PATH
编辑: 我的主要问题是,当我做
去拿gopkg.in/mgo.v2我得到
fatal: unable to access 'https://gopkg.in/mgo.v2/': SSL certificate problem: self signed certificate in certificate chain
package gopkg.in/mgo.v2: exit status 128
这是因为git的需求证书。我能够clone this repo using
git -c http.sslVerify=false clone
我必须做类似的设置一些在哪里得到它从去得到命令
https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies – rightfold 2014-12-07 13:50:42
我编辑了我的答案来解决您编辑的问题。 – VonC 2014-12-08 11:41:01