Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, status int, err error)
Error will write a given error to the http.ResponseWriter as JSON and set the HTTP status.
func JSON ¶
func JSON(w http.ResponseWriter, status int, v interface{})
JSON will write a given interface{} to the http.ResponseWriter as JSON and set the HTTP status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.