Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteErrorResponse ¶
func WriteErrorResponse(rw http.ResponseWriter, status int, msg string)
WriteErrorResponse write error resp.
func WriteResponse ¶
WriteResponse writes interface value to response.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"errMessage,omitempty"`
}
ErrorResponse represents a generic error message to send as a response.
Click to show internal directories.
Click to hide internal directories.