protobuf-go/cmd/protoc-gen-go
Damien Neil bb1d557b23 cmd/protoc-gen-go: factor out oneof field naming
A oneof is represented by a single struct field of interface type.
Pull out the decision of what to name that field into a separate
function.

The function is trivial (return oneof.GoName), but factoring out the
field name like this makes it a bit easier to experiment with changes to
the oneof implementation in the future.

Change-Id: I1114b68c85cb6608852fa1c6bf4103ff58fd5de6
Reviewed-on: https://go-review.googlesource.com/c/146397
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-31 20:40:31 +00:00
..
internal_gengo cmd/protoc-gen-go: factor out oneof field naming 2018-10-31 20:40:31 +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