Documentation ¶
Index ¶
- func Error(w http.ResponseWriter, handlerErr error, message string, code int)
- func Errorf(w http.ResponseWriter, handlerErr error, code int)
- func Json(w http.ResponseWriter, v interface{}, code int)
- func JsonOK(w http.ResponseWriter, v interface{})
- func NoContent(w http.ResponseWriter)
- func Ok(w http.ResponseWriter, body []byte)
- func Render(w http.ResponseWriter, body []byte, code int)
- type AppHttpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Json ¶
func Json(w http.ResponseWriter, v interface{}, code int)
func JsonOK ¶
func JsonOK(w http.ResponseWriter, v interface{})
func NoContent ¶
func NoContent(w http.ResponseWriter)
func Ok ¶
func Ok(w http.ResponseWriter, body []byte)
Types ¶
type AppHttpError ¶
type AppHttpError struct {
// contains filtered or unexported fields
}
------------------- appHttpError -------------------
Click to show internal directories.
Click to hide internal directories.