Documentation ¶
Index ¶
- Variables
- func BadRequest(w http.ResponseWriter, err error)
- func Data(w http.ResponseWriter, v interface{})
- func Error(w http.ResponseWriter, err error)
- func Html(w http.ResponseWriter, t string)
- func JSON(w http.ResponseWriter, v interface{})
- func Text(w http.ResponseWriter, t string)
- func WrapResponse(wrapData bool) func(http.Handler) http.Handler
- type H
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseErrorMessageAsHint bool
Response internal error msg as hint
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, err error)
func Data ¶
func Data(w http.ResponseWriter, v interface{})
func Error ¶
func Error(w http.ResponseWriter, err error)
func Html ¶
func Html(w http.ResponseWriter, t string)
func JSON ¶
func JSON(w http.ResponseWriter, v interface{})
func Text ¶
func Text(w http.ResponseWriter, t string)
Types ¶
Click to show internal directories.
Click to hide internal directories.