protobuf-go/encoding
Herbie Ong 20aefe9c5e encoding/prototext: fix parsing of field names
Previous code tries to do all-lowercase match all non-extension field
names to match group field names, which is incorrect. Fix to check for
only group field type and make sure that the format is correct as well.

Fixes golang/protobuf#878.

Fix typo in text proto string in internal/impl/message_test.go that
wasn't caught before due to above issue.

Change-Id: Ief952907306435ed76a095e96e29fcc9c0027b73
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/183737
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-06-25 21:57:50 +00:00
..
protojson all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
prototext encoding/prototext: fix parsing of field names 2019-06-25 21:57:50 +00:00
testprotos cmd/protoc-gen-go: un-deprecate enum maps 2019-06-20 19:36:37 +00:00
bench_test.go reflect/protoreflect: add alternative message reflection API 2019-06-17 17:33:24 +00:00