mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
290ceea663
Add a dynamicpb.NewExtensionType function to permit creating extension types from descriptors. Also fix a some bugs around extension field handling: When creating a new value for an extension field, use the ExtensionType's Zero or New method to create the value. Ensure that prototest exercises true zero-values of fields. (i.e., getting a list, map, or message from an empty message rather than creating a new empty one with NewField.) Change-Id: Idb8e87cdc92692610e12a4b8a68c34b129fae617 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/186180 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> |
||
---|---|---|
.. | ||
prototest_test.go | ||
prototest.go |