Versions in this module Expand all Collapse all v1 v1.0.3 Apr 14, 2019 v1.0.2 Apr 14, 2019 Changes in this version + func SetOptions(opt *Options) v1.0.1 Jul 13, 2015 Changes in this version + func With(w http.ResponseWriter, r *http.Request, status int, data interface{}) + func WithStatus(w http.ResponseWriter, r *http.Request, status int) + type Encoder interface + ContentType func(w http.ResponseWriter, r *http.Request) string + Encode func(w http.ResponseWriter, r *http.Request, v interface{}) error + var JSON Encoder = (*jsonEncoder)(nil) + type Options struct + After func(w http.ResponseWriter, r *http.Request, status int, data interface{}) + AllowMultiple bool + Before func(w http.ResponseWriter, r *http.Request, status int, data interface{}) (int, interface{}) + Encoder func(w http.ResponseWriter, r *http.Request) Encoder + OnErr func(err error) + StatusData func(w http.ResponseWriter, r *http.Request, status int) interface{} + func (o *Options) Handler(handler http.Handler) http.Handler + func (o *Options) OnErrLog(err error)