golang / protobuf

Go support for Google's protocol buffers
BSD 3-Clause "New" or "Revised" License
9.74k stars 1.58k forks source link

proto: make DebugPrint print unknown field #1503

Closed qilingzhao closed 1 year ago

qilingzhao commented 1 year ago

In DebugPrint method, byte slice b was set into Message's unknown fields, but the MarshalOptions 's field EmitUnknown use default value false. Actually, the method will print nothing about parameter b.

qilingzhao commented 1 year ago

close, becase this module is frozen