Versions in this module Expand all Collapse all v0 v0.3.3 Jan 20, 2020 v0.3.2 Jan 7, 2020 v0.3.1 Nov 6, 2019 v0.3.0 Nov 6, 2019 v0.2.3 Sep 23, 2019 v0.2.2 Aug 19, 2019 v0.2.1 Jul 24, 2019 v0.2.0 Jul 19, 2019 v0.1.0 Jun 11, 2019 Changes in this version + type Data struct + ContentType string + Data [][]byte + func (r Data) Render(w http.ResponseWriter) (err error) + func (r Data) WriteContentType(w http.ResponseWriter) + type JSON struct + Code int + Data interface{} + Message string + TTL int + func (r JSON) Render(w http.ResponseWriter) error + func (r JSON) WriteContentType(w http.ResponseWriter) + type MapJSON map[string]interface + func (m MapJSON) Render(w http.ResponseWriter) error + func (m MapJSON) WriteContentType(w http.ResponseWriter) + type PB struct + Code int64 + Data *google_protobuf.Any + Message string + TTL uint64 + func (*PB) Descriptor() ([]byte, []int) + func (*PB) ProtoMessage() + func (m *PB) GetCode() int64 + func (m *PB) GetData() *google_protobuf.Any + func (m *PB) GetMessage() string + func (m *PB) GetTTL() uint64 + func (m *PB) Reset() + func (m *PB) String() string + func (r PB) Render(w http.ResponseWriter) error + func (r PB) WriteContentType(w http.ResponseWriter) + type Redirect struct + Code int + Location string + Request *http.Request + func (r Redirect) Render(w http.ResponseWriter) error + func (r Redirect) WriteContentType(http.ResponseWriter) + type Render interface + Render func(http.ResponseWriter) error + WriteContentType func(w http.ResponseWriter) + type String struct + Data []interface{} + Format string + func (r String) Render(w http.ResponseWriter) error + func (r String) WriteContentType(w http.ResponseWriter) + type XML struct + Code int + Data interface{} + Message string + func (r XML) Render(w http.ResponseWriter) (err error) + func (r XML) WriteContentType(w http.ResponseWriter)