mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-26 21:24:22 +00:00
0084168af8
While the MarshalFrom method and function are more flexible since it permits the reuse of an existing Any, the most common use case by far is to construct a new Any. Optimize for that use case by providing a constructor that directly returns a new Any instance. We do not provide a variant that accepts a MarshalOptions since the more flexible MarshalFrom function can be used for that. Change-Id: Iab0219229c7d3aaa7390a2340a4f248002995293 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/237997 Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
internal_gengo | ||
testdata | ||
annotation_test.go | ||
main.go |