![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
grpc
weixin_41571449
这个作者很懒,什么都没留下…
展开
-
protobuf解析(二)
接上节 protobuf到底有多节省字段,我们来比较下 对于 message helloworld { int32 id = 1; string name = 2; } protobuf表示 id = 101, name = hello只需要这么多字段 08 65 12 06 68 65 6C 6C 6F 77 65即101, [68 65 6C 6C 6F]表示h原创 2018-01-18 01:14:38 · 536 阅读 · 0 评论 -
Protobuf解析(三)
接上节说的grpc 关于protobuf需要安装protoc并get几个go包 go get -u github.com/golang/protobuf/proto go get -u github.com/golang/protobuf/protoc-gen-go go get google.golang.org/grpc 我们用grpc-go的例子来跑一跑 proto文件: sy原创 2018-01-18 13:37:08 · 902 阅读 · 0 评论