Documentation
¶
Index ¶
- func AbortWithErr(w http.ResponseWriter, err error)
- func AbortWithErrCode(w http.ResponseWriter, code int, err error)
- func ParseRequest(w http.ResponseWriter, r *http.Request, req interface{}) error
- func ResponseJSON(w http.ResponseWriter, data interface{})
- func Wrap(handler interface{}) func(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortWithErr ¶
func AbortWithErr(w http.ResponseWriter, err error)
func AbortWithErrCode ¶
func AbortWithErrCode(w http.ResponseWriter, code int, err error)
func ParseRequest ¶
func ParseRequest(w http.ResponseWriter, r *http.Request, req interface{}) error
func ResponseJSON ¶
func ResponseJSON(w http.ResponseWriter, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.