Go实战--go中使用google/protobuf(The way to go)

红太狼 2022-06-15 00:26 397阅读 0赞

生命不止,继续 go go go !!!

很久之前写过关于protobuf的博客:
《google/protobuf–VS2015编译、使用》
http://blog.csdn.net/wangshubo1989/article/details/53437190

何为protobuf?

Protocol Buffers (a.k.a., protobuf) are Google’s language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can find protobuf’s documentation on the Google Developers site.

protocolbuffer(以下简称PB)是google 的一种数据交换的格式,它独立于语言,独立于平台。google 提供了多种语言的实现:Java、c#、c++、Go 和 Python,每一种实现都包含了相应语言的编译器以及库文件。由于它是一种二进制的格式,比使用 xml 进行数据交换快许多。可以把它用于分布式应用之间的数据通信或者异构环境下的数据交换。作为一种效率和兼容性都很优秀的二进制数据传输格式,可以用于诸如网络传输、配置文件、数据存储等诸多领域。

安装proto
这里为了方便,在Windows上直接下载release版本,protoc-3.3.0-win32.zip:
https://github.co

发表评论

表情:
评论列表 (有 0 条评论,397人围观)

还没有评论,来说两句吧...

相关阅读