Versions in this module Expand all Collapse all v1 v1.0.0 Jan 17, 2019 Changes in this version + const ContentBinary + const ContentHTML + const ContentJSON + const ContentJSONP + const ContentLength + const ContentText + const ContentType + const ContentXHTML + const ContentXML + type BufferPool struct + func NewBufferPool(size int) (bp *BufferPool) + func (bp *BufferPool) Get() (b *bytes.Buffer) + func (bp *BufferPool) Put(b *bytes.Buffer) + type Data struct + func (d Data) Render(w io.Writer, v interface{}) error + type Delims struct + Left string + Right string + type Engine interface + Render func(io.Writer, interface{}) error + type HTML struct + Name string + Templates *template.Template + func (h HTML) Render(w io.Writer, binding interface{}) error + type HTMLOptions struct + Layout string + type Head struct + ContentType string + Status int + func (h Head) Write(w http.ResponseWriter) + type JSON struct + Indent bool + Prefix []byte + StreamingJSON bool + UnEscapeHTML bool + func (j JSON) Render(w io.Writer, v interface{}) error + type JSONP struct + Callback string + Indent bool + func (j JSONP) Render(w io.Writer, v interface{}) error + type Options struct + Asset func(name string) ([]byte, error) + AssetNames func() []string + BinaryContentType string + Charset string + Delims Delims + Directory string + DisableCharset bool + DisableHTTPErrorRendering bool + Extensions []string + Funcs []template.FuncMap + HTMLContentType string + IndentJSON bool + IndentXML bool + IsDevelopment bool + JSONContentType string + JSONPContentType string + Layout string + PrefixJSON []byte + PrefixXML []byte + RenderPartialsWithoutPrefix bool + RequireBlocks bool + RequirePartials bool + StreamingJSON bool + TextContentType string + UnEscapeHTML bool + XMLContentType string + type Render struct + func New(options ...Options) *Render + func (r *Render) Data(w io.Writer, status int, v []byte) error + func (r *Render) HTML(w io.Writer, status int, name string, binding interface{}, ...) error + func (r *Render) JSON(w io.Writer, status int, v interface{}) error + func (r *Render) JSONP(w io.Writer, status int, callback string, v interface{}) error + func (r *Render) Render(w io.Writer, e Engine, data interface{}) error + func (r *Render) TemplateLookup(t string) *template.Template + func (r *Render) Text(w io.Writer, status int, v string) error + func (r *Render) XML(w io.Writer, status int, v interface{}) error + type Text struct + func (t Text) Render(w io.Writer, v interface{}) error + type XML struct + Indent bool + Prefix []byte + func (x XML) Render(w io.Writer, v interface{}) error