Versions in this module Expand all Collapse all v2 v2.4.0 Jul 9, 2021 Changes in this version + func ReadJSON(r *http.Request, v interface{}) error + func SendBadRequestError(w http.ResponseWriter, r *http.Request, message string) + func SendError(w http.ResponseWriter, r *http.Request, err error) + func SendNotFoundError(w http.ResponseWriter, r *http.Request) + func SendUnauthorizedError(w http.ResponseWriter, r *http.Request) + func WriteData(w http.ResponseWriter, httpStatusCode int, b []byte) error + func WriteJSON(w http.ResponseWriter, httpStatusCode int, v interface{}) error