Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternalServer = errors.New("internal server error") ErrBadRequest = errors.New("bad request") )
Functions ¶
func HandleError ¶
func HandleError(w http.ResponseWriter, err error, status int)
Types ¶
type ResponseError ¶
type ResponseError struct {
Error string `json:"error"`
}
func (*ResponseError) String ¶
func (re *ResponseError) String() string
Click to show internal directories.
Click to hide internal directories.