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

Function convertProto

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

Source from the content-addressed store, hash-verified

340}
341
342func convertProto(src, dst proto.Message) error {
343 pb, err := proto.Marshal(src)
344 if err != nil {
345 return err
346 }
347 err = proto.Unmarshal(pb, dst)
348 return err
349}

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected