01 2017 档案

利用golang语法检查对象是否实现了接口
摘要:var _ ipc.Server = &CenterServer{} CenterServer是否实现了 ipc.Server的接口。编译期间检测,这是很好的编程实践。 稍后详述。。。 阅读全文

posted @ 2017-01-09 16:46 拥剑公子 阅读(1448) 评论(0) 推荐(0) 编辑

etcd-v2第四集
摘要:coreos把etcd的image放到自家的quay.io,而不是hub.docker,或许是竞争关系,但国内下载quay.io容器极难,反正shadowsocks是下载不了。 幸好有热心爱好者搬运到docker上: docker pull djx339/etcd:v3.0.15 docker pu 阅读全文

posted @ 2017-01-09 16:14 拥剑公子 阅读(187) 评论(0) 推荐(0) 编辑

Understanding Chan Chan's in Go
摘要:转自老外的文章:http://tleyden.github.io/blog/2013/11/23/understanding-chan-chans-in-go/ A channel describes a transport of sorts. You can send a thing down t 阅读全文

posted @ 2017-01-06 13:50 拥剑公子 阅读(186) 评论(0) 推荐(0) 编辑

etcd-v2第三集
摘要:简单说下golang的etcd接口例子。etcd api有v2(http+json)和v3(grpc)两个版本,目前大家都用v2,所以。。。 v2: https://github.com/coreos/etcd/tree/master/client v3: https://github.com/co 阅读全文

posted @ 2017-01-06 11:35 拥剑公子 阅读(290) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示