protobuf-go/cmd/protoc-gen-go
Joe Tsai 1321a0e05b cmd/protoc-gen-go: generate descriptor proto using v2 textpb
Changes:
* Modify protoc-gen-go to use a helper from internal/impl
to print the message as text.
* Add a helper function to internal/impl that calls v2 textpb.
* Modify encoding/textpb to avoid depending on descriptor proto,
which would cause an import cycle.
* Modify internal/fileinit to populate a pseudo-internal
method on MessageDescriptor to check whether the message should
use the message set wire format. We avoid adding this to the
main MessageDescriptor interface since message sets are a
deprecated proto1 feature that we should avoid promoting.

Change-Id: Ibaf79a563af695756f11ddc4db69b38e25a8f1a7
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168439
Reviewed-by: Herbie Ong <herbie@google.com>
2019-03-20 20:58:24 +00:00
..
internal_gengo cmd/protoc-gen-go: generate descriptor proto using v2 textpb 2019-03-20 20:58:24 +00:00
testdata cmd/protoc-gen-go: fix init order for v1 registration 2019-03-20 04:16:33 +00:00
annotation_test.go internal/cmd/generate-protos: generate internal descfield package 2019-03-02 23:16:45 +00:00
main.go internal/cmd/generate-protos: initial commit 2019-03-01 20:47:52 +00:00