protobuf-go/internal
Joe Tsai ae313d4af3 cmd/protoc-gen-go: fix Reset method
The MessageInfo cache, once set, must not be cleared, otherwise
there exists a *messageState value where the MessageInfo value is nil.
Fix the generation of the Reset method to avoid clearing this value.

Change-Id: Ic84ca8b2640a43e967c36993da1ccd3f2b7096c4
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/201478
Reviewed-by: Damien Neil <dneil@google.com>
2019-10-17 17:10:14 +00:00
..
cmd internal/impl: optimize reflect methods 2019-09-19 17:45:34 +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
detrand internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
encoding all: use typed variant of protoreflect.ValueOf 2019-09-17 21:33:16 +00:00
errors internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
fieldnum
filedesc all: use typed variant of protoreflect.ValueOf 2019-09-17 21:33:16 +00:00
filetype internal/impl: move filetype.EnumInfo to impl 2019-09-16 22:07:05 +00:00
flags
fuzz internal/fuzz: add basic fuzzing target for Marshal/Unmarshal 2019-10-11 16:00:11 +00:00
impl cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00
mapsort internal/mapsort: use explicit kind for strings 2019-09-05 22:07:15 +00:00
pragma
protolegacy internal/protolegacy: add stub v1 proto package for testing purposes 2019-10-05 23:12:32 +00:00
set
strs compiler/protogen, internal/strs, internal/impl: expose enum Go name derivation 2019-08-26 17:49:17 +00:00
testprotos cmd/protoc-gen-go: fix Reset method 2019-10-17 17:10:14 +00:00