Documentation ¶
Overview ¶
Package response holds utility functions related to http response handling
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteErr ¶
WriteErr writes an appropriate error message into the http response. It'll write a respose status code from either 4xx or 5xx category
func WriteSuccess ¶
func WriteSuccess(w http.ResponseWriter, r *http.Request, b interface{}, id interface{}) error
WriteSuccess writes to the response with appropriate status and headers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.