package unimplemented import ( "encoding/json" "somehole.com/service/router" ) type Response struct { header struct { router.Header } Body struct{} } func (r Response) Response() router.Response { return &r } func (r *Response) Header() (header router.Header) { if r.header.Header == nil { r.header.Header.Parse(r.header) } return r.header.Header } func (r *Response) BodyBytes() (body []byte) { body, _ = json.Marshal(r.Body) return }