mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-20 15:41:07 +00:00
Implement the constructor for protoreflect.ExtensionType. The constructor is more complicated than NewGoEnum and NewGoMessage because it is responsible for providing the wrappers to present *[]T as a protoreflect.Vector. There are no tests since we need the follow-up logic in internal/impl to actually make use of extensions. A subsequent CL will add that logic and comprehensively test extensions. Change-Id: I2d7893de299fe40be2ccedd8f39a92c40c41e59a Reviewed-on: https://go-review.googlesource.com/c/147578 Reviewed-by: Herbie Ong <herbie@google.com>