protobuf-go/cmd/protoc-gen-go
Joe Tsai 05828dba44 internal/encoding/tag: centralize logic for protobuf struct tag serialization
The bespoke text-serialization of field descriptors in protoc-gen-go is also
used in the legacy implementation of protobuf reflection to derive a
protoreflect.FieldDescriptor from legacy messages and also to convert to/from
protoreflect.ExtensionDescriptor and protoV1.ExtensionDesc.

Centralize this logic in a single place:
* to avoid reimplementing the same logic in internal/impl
* to keep the marshal and unmarshal logic co-located

Change-Id: I634c5afbb9dc6eda91d6cb6b0e68dbd724cb1ccb
Reviewed-on: https://go-review.googlesource.com/c/146758
Reviewed-by: Herbie Ong <herbie@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2018-11-05 20:12:56 +00:00
..
internal_gengo internal/encoding/tag: centralize logic for protobuf struct tag serialization 2018-11-05 20:12:56 +00:00
testdata cmd/protoc-gen-go: replicate v1 generator behavior for MessageSet extensions 2018-10-30 18:46:20 +00:00
golden_test.go protogen: generate .meta file with code annotations 2018-10-16 17:22:41 +00:00
main.go protogen: add an option to rewrite import paths 2018-09-28 21:19:59 +00:00