Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondError ¶
func RespondError(w http.ResponseWriter, status int, err interface{})
RespondError makes the error response with payload as json format
func RespondErrorWithTitle ¶ added in v0.0.6
func RespondErrorWithTitle(w http.ResponseWriter, status int, message, title string)
RespondErrorWithTitle makes the error response with title with payload as json format
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, status int, payload interface{})
RespondJSON makes the response with payload as json format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.