protobuf-go/protogen
Damien Neil 0bd5a38474 cmd/protoc-gen-go: add support for map fields
Generate the proper map[key]value type for map fields.
Include the protobuf_key and protobuf_val field tags.
Do not generate the map entry structs.

Fix an initialization order bug in protogen: While proto files cannot
contain circular dependencies, a single file can contain dependency
cycles. First create types for all the descriptors in a file, then add
in references (currently just field->message and field->enum) in a
second pass.

Change-Id: Ifedfa657d8dbb00413ba493adee1119b19c1b773
Reviewed-on: https://go-review.googlesource.com/135355
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-09-13 22:20:09 +00:00
..
testdata/go_package protogen, cmd/protoc-gen-go: initial commit 2018-08-22 17:08:04 +00:00
names_test.go protogen: automatic handling of imports 2018-09-05 23:14:28 +00:00
names.go protogen: use protoreflect descriptors 2018-09-06 17:45:34 +00:00
protogen_test.go protogen: support passing command-line parameters to plugins 2018-09-11 22:07:12 +00:00
protogen.go cmd/protoc-gen-go: add support for map fields 2018-09-13 22:20:09 +00:00