Documentation ¶
Index ¶
- Constants
- func Bind(r io.Reader, v interface{}) error
- func HTML(w http.ResponseWriter, status int, v string)
- func JSON(w http.ResponseWriter, status int, v interface{})
- func Noop(w http.ResponseWriter)
- func ParseContentType(next chi.Handler) chi.Handler
- func Respond(w http.ResponseWriter, status int, v interface{})
- func String(w http.ResponseWriter, status int, v string)
- func XML(w http.ResponseWriter, status int, v interface{})
- type ContentType
Constants ¶
View Source
const ( ContentTypePlainText = iota ContentTypeHTML ContentTypeJSON ContentTypeEventStream ContentTypeXML )
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
func JSON(w http.ResponseWriter, status int, v interface{})
func Noop ¶
func Noop(w http.ResponseWriter)
func Respond ¶
func Respond(w http.ResponseWriter, status int, v interface{})
func XML ¶
func XML(w http.ResponseWriter, status int, v interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.