Documentation ¶
Index ¶
- func Error(w http.ResponseWriter, code int, message string) error
- func Fail(w http.ResponseWriter, code int, message string) error
- func HTML(w http.ResponseWriter, code int, v string) error
- func JSON(w http.ResponseWriter, code int, v any) error
- func PlainText(w http.ResponseWriter, code int, v string) error
- func Success(w http.ResponseWriter, code int, v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, code int, message string) error
Error sends a JSend-compliant response indicating an error with the passed error message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.