Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2018 v1.0.0 Jul 6, 2017 Changes in this version + const ContentTypeEventStream + const ContentTypeForm + const ContentTypeHTML + const ContentTypeJSON + const ContentTypePlainText + const ContentTypeUnknown + const ContentTypeXML + var ContentTypeCtxKey = &contextKey + var Decode = DefaultDecoder + var Respond = DefaultResponder + var StatusCtxKey = &contextKey + func Bind(r *http.Request, v Binder) error + func Data(w http.ResponseWriter, r *http.Request, v []byte) + func DecodeJSON(r io.Reader, v interface{}) error + func DecodeXML(r io.Reader, v interface{}) error + func DefaultDecoder(r *http.Request, v interface{}) error + func DefaultResponder(w http.ResponseWriter, r *http.Request, v interface{}) + func HTML(w http.ResponseWriter, r *http.Request, v string) + func JSON(w http.ResponseWriter, r *http.Request, v interface{}) + func NoContent(w http.ResponseWriter, r *http.Request) + func PlainText(w http.ResponseWriter, r *http.Request, v string) + func Render(w http.ResponseWriter, r *http.Request, v Renderer) error + func RenderList(w http.ResponseWriter, r *http.Request, l []Renderer) error + func SetContentType(contentType ContentType) func(next http.Handler) http.Handler + func Status(r *http.Request, status int) + func XML(w http.ResponseWriter, r *http.Request, v interface{}) + type Binder interface + Bind func(r *http.Request) error + type ContentType int + func GetAcceptedContentType(r *http.Request) ContentType + func GetContentType(s string) ContentType + func GetRequestContentType(r *http.Request) ContentType + type M map[string]interface + type Renderer interface + Render func(w http.ResponseWriter, r *http.Request) error