Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseErrorMessageAsHint bool
Functions ¶
func Data ¶
func Data(w http.ResponseWriter, v interface{})
func Error ¶
func Error(w http.ResponseWriter, err error)
func InvalidParam ¶
func InvalidParam(w http.ResponseWriter, name string, value interface{})
func JSON ¶
func JSON(w http.ResponseWriter, v interface{}, status int)
JSON writes the json-encoded error message to the response with a 400 bad request status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.