Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendError ¶ added in v0.0.3
func SendError(w http.ResponseWriter, code int, err error) error
SendError returns an error response to the caller, or fails with an error.
func SendJSON ¶
func SendJSON(w http.ResponseWriter, data interface{}) error
SendJSON returns a JSON response to the caller, or fails with an error.
func SendString ¶
func SendString(w http.ResponseWriter, message string) error
SendString returns a string response to the caller, or fails with an error.
Types ¶
Click to show internal directories.
Click to hide internal directories.