MCPcopy Create free account
hub / github.com/cel-expr/cel-go / convertProto

Function convertProto

cel/io.go:366–373  ·  view source on GitHub ↗
(src, dst proto.Message)

Source from the content-addressed store, hash-verified

364}
365
366func convertProto(src, dst proto.Message) error {
367 pb, err := proto.Marshal(src)
368 if err != nil {
369 return err
370 }
371 err = proto.Unmarshal(pb, dst)
372 return err
373}

Callers 4

ValueAsAlphaProtoFunction · 0.70
ExprValueAsAlphaProtoFunction · 0.70
AlphaProtoAsValueFunction · 0.70
AlphaProtoAsDeclarationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected