Documentation ¶
Overview ¶
Package response handles utilities for writing error and normal responses to the response writer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(res http.ResponseWriter, payload Message)
Write will write the response to the response writer payload is any json serializable object
func WriteError ¶
func WriteError(res http.ResponseWriter, err Error, code int)
WriteError will write to the error response to the response writer
Types ¶
Click to show internal directories.
Click to hide internal directories.