protobuf-go/encoding/prototext
Joe Tsai cd4a31e202 encoding/prototext: add MarshalOptions.EmitUnknown
This changes text marshaling to avoid unknown fields by default
and instead adds an option so that unknown fields be emitted.
This ensures that the default marshal/unknown can round-trip.

Change-Id: I85c84ba6ab7916d538ec6bfd4e9d399a8fcba14e
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/195778
Reviewed-by: Herbie Ong <herbie@google.com>
2019-09-17 02:56:29 +00:00
..
decode_test.go internal/impl: change Go representation of extension lists to []T 2019-09-03 21:19:03 +00:00
decode.go encoding: verify that the target message is extendable 2019-09-06 07:13:15 +00:00
doc.go protogen, encoding/jsonpb, encoding/textpb: rename packages 2019-05-14 20:33:22 +00:00
encode_test.go encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
encode.go encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
other_test.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00