我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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)

The authors say that this isn't supported:

https://github.com/golang/protobuf/issues/106

近期文章

  • 在go中添加另一个阻塞线程时,为什么信号处理程序不起作用?
  • 如何覆盖内置类型
  • 在使用Go和MySQL时,为什么使用wrk进行基准测试会产生奇怪的结果?
  • Golang:如何在现有库中使用反射包
  • Readline在Go测试案例中失败
  • 无法执行golang引导程序安装程序的二进制文件
  • httprouter设置自定义NotFound
  • Golang:get.http(url)没有响应
  • 微调正则表达式
  • 从多部分POST中提取表单值
  • 在Go问题中获取URL参数
  • 将JSON文件解析为struct golang
  • Golang-将数据从一个复杂的结构映射到另一个
  • 带有Golang的IntelliJ抛出IllegalArgumentException
  • 如何在Go中检索接口的特定于连接的DNS后缀?
  • 无法通过自制程序安装在OS X上导入net / http的程序
  • 挂钩Linux键盘事件
  • 在Mongo中部分更新子文档的正确方法
  • android怎么调用输入法
  • UICollectionView出现问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华