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 to send error message in the response
Click to show internal directories.
Click to hide internal directories.