sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

Could we expose sdkToProto function

Open pingsutw opened this issue 3 years ago • 1 comments

I want to convert the CloudEvent object to CloudEvent proto, but the SDK doesn't expose this function. I've to do the following steps to get proto.

eventProto := cloudeventsModel.CloudEvent{}
byte, _ := pbcloudevents.Protobuf.Marshal(&event)
proto.Unmarshal(byte, &eventProto)

is there any other way to convert the object to a proto?

pingsutw avatar Feb 09 '22 15:02 pingsutw

Resolved #793

embano1 avatar Dec 11 '22 08:12 embano1