Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatError ¶
func FormatError(w http.ResponseWriter, message string, code int)
FormatError returns an error message with the given status code
func FormatResponse ¶
func FormatResponse(w http.ResponseWriter, value interface{}, code int)
FormatResponse writes a json body to the response writter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.