Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, err error)
BadRequest sends a 400 error to the browser.
func OK ¶
func OK(w http.ResponseWriter, r *http.Request, b []byte)
OK writes a standard HTML response.
func ServerError ¶
func ServerError(w http.ResponseWriter, err error)
ServerError sends a 500 error to the browser.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.