sdk-go
sdk-go copied to clipboard
Could we expose sdkToProto function
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?
Resolved #793