Versions in this module Expand all Collapse all v1 v1.1.4 Sep 24, 2023 Changes in this version + const DDBOT_REQ_COOKIE + const DDBOT_REQ_DEBUG + const DDBOT_REQ_HEADER + const DDBOT_REQ_PROXY + const DDBOT_REQ_USER_AGENT + var ErrGlobNotMatch = errors.New("template: pattern matches no files") + func Close() + func InitTemplateLoader() + func IsTrue(val interface{}) (truth, ok bool) + func LoadAndExec(name string, data interface{}) (*mmsg.MSG, error) + func RegisterExtFunc(name string, fn interface{}) + type ExecError struct + Err error + Name string + func (e ExecError) Error() string + func (e ExecError) Unwrap() error + type FuncMap map[string]interface + type SortedMap struct + Key []reflect.Value + Value []reflect.Value + func Sort(mapValue reflect.Value) *SortedMap + func (o *SortedMap) Len() int + func (o *SortedMap) Less(i, j int) bool + func (o *SortedMap) Swap(i, j int) + type Template struct + func LoadTemplate(name string) *Template + func Must(t *Template, err error) *Template + func New(name string) *Template + func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func ParseFiles(filenames ...string) (*Template, error) + func ParseGlob(pattern string) (*Template, error) + func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) + func (t *Template) Clone() (*Template, error) + func (t *Template) DefinedTemplates() string + func (t *Template) Delims(left, right string) *Template + func (t *Template) Execute(wr *mmsg.MSG, data interface{}) error + func (t *Template) ExecuteTemplate(wr *mmsg.MSG, name string, data interface{}) error + func (t *Template) Funcs(funcMap FuncMap) *Template + func (t *Template) Lookup(name string) *Template + func (t *Template) Name() string + func (t *Template) New(name string) *Template + func (t *Template) Option(opt ...string) *Template + func (t *Template) Parse(text string) (*Template, error) + func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) ParseGlob(pattern string) (*Template, error) + func (t *Template) Templates() []*Template