分享
go安装leaf
mqdChalali · · 6101 次点击 · · 开始浏览这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。
go安装leaf
安装的时候使用go get发现控制台没有任何显示进度。所以可以用后面的那个链接下载。我是追出来的这个链接。
其实go get 就是 git clone到本地。
如果觉得git慢的话,可以先迅雷下载到本地,再上传上去,放在需要的目录下面。
1.配置项目路径GOPATH到/root/leafserver
2.下载所需要的库
git clone https://github.com/name5566/leafserver
go get github.com/name5566/leaf 或者 git clone https://github.com/name5566/leaf /root/leafserver/src/github.com/name5566/leaf
go get github.com/golang/protobuf/proto 或者 git clone https://github.com/golang/protobuf /root/leafserver/src/github.com/golang/protobuf
go get gopkg.in/mgo.v2 或者 git clone https://gopkg.in/mgo.v2 /root/leafserver/src/gopkg.in/mgo.v2
3.编译
go install server
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
关注微信6101 次点击
添加一条新回复
(您需要 后才能回复 没有账号 ?)
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码` - 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传
收入到我管理的专栏 新建专栏
go安装leaf
安装的时候使用go get发现控制台没有任何显示进度。所以可以用后面的那个链接下载。我是追出来的这个链接。
其实go get 就是 git clone到本地。
如果觉得git慢的话,可以先迅雷下载到本地,再上传上去,放在需要的目录下面。
1.配置项目路径GOPATH到/root/leafserver
2.下载所需要的库
git clone https://github.com/name5566/leafserver
go get github.com/name5566/leaf 或者 git clone https://github.com/name5566/leaf /root/leafserver/src/github.com/name5566/leaf
go get github.com/golang/protobuf/proto 或者 git clone https://github.com/golang/protobuf /root/leafserver/src/github.com/golang/protobuf
go get gopkg.in/mgo.v2 或者 git clone https://gopkg.in/mgo.v2 /root/leafserver/src/gopkg.in/mgo.v2
3.编译
go install server