Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadHTTPResponseBodyNoErr ¶
ReadHTTPResponseBodyNoErr reads entire HTTP response body into a byte slice, silently skipping errors.
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, v interface{}) (int, error)
WriteJSON writes a JSON structure to a response and sets Content-Type header.
func WriteStatus ¶
func WriteStatus(w http.ResponseWriter, code int) (int, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.