Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, statusCode int, message string, err error)
RespondWithError sends a JSON error response with the given status code
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, statusCode int, payload interface{})
RespondWithJSON sends a JSON response with the given status code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.