mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-04-11 00:44:16 +00:00
This allows writing: `copy := proto.CloneOf(orig)` instead of the previous: `copy := proto.Clone(orig).(*pb.MyMessage)` Fixes golang/protobuf#1594 Change-Id: I7b8b712b6e59607ccc339720ee3c146e8a7ea28b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/653536 Reviewed-by: Cassondra Foesch <cfoesch@gmail.com> Reviewed-by: Michael Stapelberg <stapelberg@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com>