Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteErr ¶
func WriteErr(w http.ResponseWriter, err error)
WriteErr interprets the given error as one of the errors defined in errors package and writes the error response.
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, status int, v interface{})
WriteJSON writes 'v' to response-writer in JSON format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.