简体   繁体   English

与Protocol Buffers集成?

[英]Go integration with Protocol Buffers?

在快速查看文档后,我立即开始考虑与现有语言和应用程序的集成,并想知道是否会为Protocol Buffers提供支持?

Ok, this is an old question. 好的,这是一个老问题。 But since I ended up here with the same question and found a more up to date answer, let me post what I found: 但是,由于我在这里遇到了同样的问题,并找到了更新的答案,让我发布我发现的内容:

http://code.google.com/p/goprotobuf/ http://code.google.com/p/goprotobuf/

They will be fully supported in the next release. 它们将在下一版本中得到完全支持。 Read their FAQ in docs 阅读文档中常见问题解答

I'd be very surprised if there didn't exist a Protocol Buffers library for Go already internally. 如果内部没有针对Go的Protocol Buffers库,我会感到非常惊讶。 (I don't know for sure, and I'm not going to check as then it would be confidential :) (我不确定,我不打算检查,因为它会保密:)

However, it's quite possible that it's a proto1 library rather than the open-sourced proto2. 但是,它很可能是一个proto1库而不是开源的proto2。

I'm sure someone somewhere will port proto2 to Go, whether that's someone internal or external. 我确信有人会将proto2移植到Go,无论是内部还是外部。

Protocol buffers are now fully supported in Go. Go现在完全支持协议缓冲区。 The official Go library can be found at github.com/golang/protobuf . 官方Go库可以在github.com/golang/protobuf找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM