Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ERROR ¶
func ERROR(w http.ResponseWriter, statusCode int, err error)
ERROR responds with a well formatted json error along with a status code
func JSON ¶
func JSON(w http.ResponseWriter, statusCode int, data interface{})
JSON responds with a well formatted json response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.