Versions in this module Expand all Collapse all v1 v1.1.4 Dec 4, 2016 v1.1.3 Dec 3, 2016 v1.1.2 Dec 3, 2016 v1.1.1 Dec 3, 2016 Changes in this version + func WriteJSON(w http.ResponseWriter, obj interface{}) error + func WriteString(w http.ResponseWriter, format string, data []interface{}) + type Data struct + ContentType string + Data []byte + func (r Data) Render(w http.ResponseWriter) error + type HTML struct + Data interface{} + Name string + Template *template.Template + func (r HTML) Render(w http.ResponseWriter) error + type HTMLDebug struct + Files []string + Glob string + func (r HTMLDebug) Instance(name string, data interface{}) Render + type HTMLProduction struct + Template *template.Template + func (r HTMLProduction) Instance(name string, data interface{}) Render + type HTMLRender interface + Instance func(string, interface{}) Render + type IndentedJSON struct + Data interface{} + func (r IndentedJSON) Render(w http.ResponseWriter) error + type JSON struct + Data interface{} + func (r JSON) Render(w http.ResponseWriter) error + type Redirect struct + Code int + Location string + Request *http.Request + func (r Redirect) Render(w http.ResponseWriter) error + type Render interface + Render func(http.ResponseWriter) error + type String struct + Data []interface{} + Format string + func (r String) Render(w http.ResponseWriter) error + type XML struct + Data interface{} + func (r XML) Render(w http.ResponseWriter) error + type YAML struct + Data interface{} + func (r YAML) Render(w http.ResponseWriter) error