protobuf-go/encoding/prototext
Joe Tsai 705acadcc7 proto: reset message by default in Unmarshal
We change Unmarshal to reset a message by default.
* We add a Merge option to UnmarshalOptions for explicit merging.
* We speed up Reset by checking for the Reset method.
* Remove TODOs in prototext and protojson about reset behavior.

Fixes golang/protobuf#890

Change-Id: Ibd8963c741053f564acf061fbdb846699942109c
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/195457
Reviewed-by: Damien Neil <dneil@google.com>
2019-09-17 21:13:42 +00:00
..
decode_test.go encoding/prototext: add UnmarshalOptions.DiscardUnknown 2019-09-17 03:07:37 +00:00
decode.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +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