mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
0bd5a38474
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> |
||
---|---|---|
.. | ||
enum.pb.go | ||
enum.proto | ||
fields.pb.go | ||
fields.proto |