Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReturnJSONResponse ¶
func ReturnJSONResponse(writer http.ResponseWriter, response []byte, jsonErr error)
ReturnJSONResponse takes in a response and error generated preferably by a json marshal operation and writes a response with the content-type set appropriately if there is no error. The response will return a 500 if error is not nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.