Versions in this module Expand all Collapse all v1 v1.2.0 Mar 11, 2019 Changes in this version + const ContentBinary + const ContentDisposition + const ContentHTML + const ContentJSON + const ContentJSONP + const ContentText + const ContentType + const ContentXML + const ContentYAML + type M map[string]interface + type Options struct + Charset string + ContentBinary string + ContentHTML string + ContentJSON string + ContentJSONP string + ContentText string + ContentXML string + ContentYAML string + Debug bool + DisableCharset bool + FuncMap []template.FuncMap + JSONIndent bool + JSONPrefix string + LayoutExtension string + LeftDelim string + ParseGlobPattern string + RightDelim string + TemplateDir string + TemplateExtension string + UnEscapeHTML bool + XMLIndent bool + XMLPrefix string + type Render struct + func New(opts ...Options) *Render + func (r *Render) Binary(w http.ResponseWriter, status int, reader io.Reader, filename string, ...) error + func (r *Render) Charset(c string) *Render + func (r *Render) Delims(left, right string) *Render + func (r *Render) DisableCharset(b bool) *Render + func (r *Render) EscapeHTML(b bool) *Render + func (r *Render) File(w http.ResponseWriter, status int, reader io.Reader, filename string, ...) error + func (r *Render) FileDownload(w http.ResponseWriter, status int, fpath, name string) error + func (r *Render) FileView(w http.ResponseWriter, status int, fpath, name string) error + func (r *Render) FuncMap(fmap template.FuncMap) *Render + func (r *Render) HTML(w http.ResponseWriter, status int, name string, v interface{}) error + func (r *Render) HTMLString(w http.ResponseWriter, status int, html string) error + func (r *Render) JSON(w http.ResponseWriter, status int, v interface{}) error + func (r *Render) JSONIndent(b bool) *Render + func (r *Render) JSONP(w http.ResponseWriter, status int, callback string, v interface{}) error + func (r *Render) NoContent(w http.ResponseWriter) error + func (r *Render) Render(w http.ResponseWriter, status int, v interface{}) error + func (r *Render) String(w http.ResponseWriter, status int, v interface{}) error + func (r *Render) Template(w http.ResponseWriter, status int, tpls []string, v interface{}) error + func (r *Render) View(w http.ResponseWriter, status int, name string, v interface{}) error + func (r *Render) XML(w http.ResponseWriter, status int, v interface{}) error + func (r *Render) XMLIndent(b bool) *Render + func (r *Render) YAML(w http.ResponseWriter, status int, v interface{}) error