dreamer1231
dreamer1231
2015-09-23 03:06

Go的protobuf实现是否支持DynamicMessage?

已采纳

Specifically, I'd like to serialize a Go struct without a corresponding .proto file, and then deserialize it (also without a .proto file) and programmatically query and extract its fields.

A search of the golang implementation turns up no equivalent functionality.

Is this supported?

(while encoding/gob supports this, I need multi-language compatibility)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答