// MarshalEventPayload marshals a SDK API shape into its associated wire
// protocol payload.
MarshalEventPayload marshals a SDK API shape into its associated wire
protocol payload.
// MarshalEventPayload marshals a SDK API shape into its associated wire // protocol payload .
func MarshalEventPayload(
	payloadMarshaler protocol.PayloadMarshaler,
	v interface{},
) []byte {
	var w bytes.Buffer
	err := payloadMarshaler.MarshalPayload(&w, v)
	if err != nil {
		panic(fmt.Sprintf("failed to marshal event %T, %v", v, v))
	}
	return w.Bytes()
}
func MarshalEventPayload ( payloadMarshaler protocol . PayloadMarshaler , v interface { } , ) [ ] byte { var w bytes . Buffer err := payloadMarshaler . MarshalPayload ( & w , v ) if err != nil { panic ( fmt . Sprintf ( " " , v , v ) ) } return w . Bytes ( ) }
MarshalEventPayload marshals a SDK API shape into its associated wire
protocol payload.
MarshalEventPayload marshals a SDK API shape into its associated wire protocol payload .