mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-29 09:32:38 +00:00
88bc5a7d99
The implementation of reflect/protoreflect.NewGoExtension needs to be able to provide a constructor for wrapping *[]T as a protoreflect.Vector. However, it cannot depend on internal/impl since impl also depends on prototype. Extract the common logic of Vector creation into a separate package that has no dependencies on either impl or prototype. Change-Id: I9295fde9b8861de11af085c91d9dfa56047d1b1e Reviewed-on: https://go-review.googlesource.com/c/147446 Reviewed-by: Herbie Ong <herbie@google.com>