Documentation ¶
Overview ¶
Built in parcel formatting for JSON
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binder ¶
type Binder struct{}
Parcel binder for JSON
func (Binder) BindFromRequest ¶
Binds data from an HTTP request into a destination
type Renderer ¶
type Renderer struct{}
Parcel renderer for json data
func (Renderer) NewRequest ¶
Creates a new HTTP request and renders data to the body of the request
func (Renderer) RenderErrorResponse ¶
func (r Renderer) RenderErrorResponse(w http.ResponseWriter, err error)
func (Renderer) RenderResponse ¶
func (r Renderer) RenderResponse(w http.ResponseWriter, status int, data interface{}) error
Renders data to an HTTP response writer
Click to show internal directories.
Click to hide internal directories.