Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendError ¶
SendError sends a JSON-encoded error response for errors encountered during processing.
func SendStatusAndJSON ¶
func SendStatusAndJSON(w http.ResponseWriter, statusCode int, response interface{}) error
SendStatusAndJSON sends an HTTP status code and a JSON-encoded response to a client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.