Documentation
¶
Index ¶
- func Data(w http.ResponseWriter, status int, v []byte)
- func HTML(w http.ResponseWriter, status int, v string)
- func Html(w http.ResponseWriter, status int, v string)
- func JSON(w http.ResponseWriter, status int, v interface{})
- func Json(w http.ResponseWriter, status int, v interface{})
- func PlainText(w http.ResponseWriter, status int, v string)
- func XML(w http.ResponseWriter, status int, v interface{})
- func Xml(w http.ResponseWriter, status int, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Data ¶
func Data(w http.ResponseWriter, status int, v []byte)
Data writes binary data response with the given status code.
func HTML ¶
func HTML(w http.ResponseWriter, status int, v string)
HTML writes HTML response with the given status code.
func Html ¶
func Html(w http.ResponseWriter, status int, v string)
Html is deprecated: use HTML instead
func JSON ¶
func JSON(w http.ResponseWriter, status int, v interface{})
JSON writes JSON response with the given status code.
func Json ¶
func Json(w http.ResponseWriter, status int, v interface{})
Json is deprecated: use JSON instead
func PlainText ¶
func PlainText(w http.ResponseWriter, status int, v string)
PlainText writes plain text response with the given status code.
func XML ¶
func XML(w http.ResponseWriter, status int, v interface{})
XML writes XML response with the given status code.
func Xml ¶
func Xml(w http.ResponseWriter, status int, v interface{})
Xml is deprecated: use XML instead
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.