MCPcopy
hub / github.com/golang/protobuf / enumGoType

Function enumGoType

proto/registry.go:253–255  ·  view source on GitHub ↗
(et protoreflect.EnumType)

Source from the content-addressed store, hash-verified

251}
252
253func enumGoType(et protoreflect.EnumType) reflect.Type {
254 return reflect.TypeOf(et.New(0))
255}
256
257func messageGoType(mt protoreflect.MessageType) reflect.Type {
258 return reflect.TypeOf(MessageV1(mt.Zero().Interface()))

Callers 1

goTypeForFieldFunction · 0.85

Calls 1

NewMethod · 0.45

Tested by

no test coverage detected