Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadJSONBody ¶
ReadJSONBody is a generic request reader to unmarshal JSON bodies.
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, r *http.Request, code int, response interface{})
WriteJSONResponse is a generic wrapper for returning a JSON payload to the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.