Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadResponse ¶
ReadResponse reads a JSON response, and unmarshals the supplied data.
func WriteError ¶
func WriteError(w http.ResponseWriter, error string, code int)
WriteError encodes the supplied error in a response, and writes to w.
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, data interface{}, code int)
WriteResponse encodes the supplied data in a response, and writes to w.
Types ¶
Click to show internal directories.
Click to hide internal directories.