You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
213 B
Go

package main
func errorResponse(re int, err error) response {
var body struct {
Message string `json:"message"`
}
body.Message = err.Error()
return response{
Re: re,
Type: "error",
Body: body,
}
}