Versions in this module Expand all Collapse all v2 v2.0.7 Aug 7, 2022 Changes in this version + func Execute(template, startTag, endTag string, w io.Writer, m map[string]interface{}) (int64, error) + func ExecuteFunc(template, startTag, endTag string, w io.Writer, f TagFunc) (int64, error) + func ExecuteFuncString(template, startTag, endTag string, f TagFunc) string + func ExecuteFuncStringWithErr(template, startTag, endTag string, f TagFunc) (string, error) + func ExecuteStd(template, startTag, endTag string, w io.Writer, m map[string]interface{}) (int64, error) + func ExecuteString(template, startTag, endTag string, m map[string]interface{}) string + func ExecuteStringStd(template, startTag, endTag string, m map[string]interface{}) string + type TagFunc func(w io.Writer, tag string) (int, error) + type Template struct + func New(template, startTag, endTag string) *Template + func NewTemplate(template, startTag, endTag string) (*Template, error) + func (t *Template) Execute(w io.Writer, m map[string]interface{}) (int64, error) + func (t *Template) ExecuteFunc(w io.Writer, f TagFunc) (int64, error) + func (t *Template) ExecuteFuncString(f TagFunc) string + func (t *Template) ExecuteFuncStringWithErr(f TagFunc) (string, error) + func (t *Template) ExecuteStd(w io.Writer, m map[string]interface{}) (int64, error) + func (t *Template) ExecuteString(m map[string]interface{}) string + func (t *Template) ExecuteStringStd(m map[string]interface{}) string + func (t *Template) Reset(template, startTag, endTag string) error