Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer interface { Render(w http.ResponseWriter, status int, data interface{}) Error(w http.ResponseWriter, status int, message string) InternalError(w http.ResponseWriter) }
Renderer renders HTTP responses
func NewHTMLRenderer ¶
NewHTMLRenderer makes a renderer that speaks HTML
func NewJSONRenderer ¶
func NewJSONRenderer() Renderer
NewJSONRenderer makes a renderer that speaks JSON
Click to show internal directories.
Click to hide internal directories.