起初我以爲它作爲像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