Format formats the message as a multiline string. This function is only intended for human consumption and ignores errors. Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.
(m proto.Message)
| 29 | // different builds of your program, even when using the same version of the |
| 30 | // protobuf module. |
| 31 | func Format(m proto.Message) string { |
| 32 | return MarshalOptions{Multiline: true}.Format(m) |
| 33 | } |
| 34 | |
| 35 | // Marshal writes the given [proto.Message] in JSON format using default options. |
| 36 | // Do not depend on the output being stable. Its output will change across |