protobuf-go/internal
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
..
cmd all: make error messages unstable 2019-09-07 00:39:30 +00:00
conformance encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
descfmt internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
descopts internal/filedesc, internal/filetype: initial commit 2019-06-20 02:06:11 +00:00
detrand internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
encoding encoding/prototext: drop trailing newline for empty 2019-09-14 21:08:43 +00:00
errors internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
fieldnum
filedesc internal/filedesc: gracefully handle unresolved enums 2019-09-17 20:49:51 +00:00
filetype internal/impl: move filetype.EnumInfo to impl 2019-09-16 22:07:05 +00:00
flags all: rename tag and flags for legacy support 2019-08-08 20:49:00 +00:00
impl proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
mapsort internal/mapsort: use explicit kind for strings 2019-09-05 22:07:15 +00:00
pragma
set
strs compiler/protogen, internal/strs, internal/impl: expose enum Go name derivation 2019-08-26 17:49:17 +00:00
testprotos all: remove NewMessage methods 2019-09-05 17:49:46 +00:00