Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(err error, w http.ResponseWriter)
WriteError wraps WriteRawJSON and writes the appropriate error to the response writer
func WriteRawJSON ¶
func WriteRawJSON(statusCode int, object interface{}, w http.ResponseWriter)
WriteRawJSON writes a non-API object in JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.