1 2 3 4 5 6 7 8 9 10 11 12 13 14
package roadrunner type Payload struct { Head, Body []byte } func (p *Payload) HeadString() { } // String returns payload body as string func (p *Payload) String() string { return string(p.Body) }