Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, statusCode int, err error)
WriteError writes an error in JSON format to the ResponseWriter
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, data interface{})
WriteResponse writes a standard HTTP response to the ResponseWriter in JSON format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.