Versions in this module Expand all Collapse all v1 v1.0.6 Apr 8, 2024 v1.0.5 Mar 28, 2024 v1.0.4 Aug 12, 2022 v1.0.3 Jun 15, 2022 v1.0.2 Jun 7, 2022 v1.0.1 May 17, 2022 v1.0.0 Apr 16, 2022 v0 v0.8.5 Dec 20, 2021 v0.8.4 Sep 22, 2021 v0.8.3 Sep 4, 2021 v0.8.2 Sep 13, 2020 v0.8.1 May 11, 2020 Changes in this version + func HTMLEscape(w io.Writer, b []byte) + func HTMLEscapeString(s string) string + func HTMLEscaper(args ...interface{}) string + func JSEscape(w io.Writer, b []byte) + func JSEscapeString(s string) string + func JSEscaper(args ...interface{}) string + func StripTags(html string, excluded ...interface{}) string + func URLQueryEscaper(args ...interface{}) string + type CSS string + type Error struct + Description string + ErrorCode ErrorCode + Line int + Name string + func (e *Error) Error() string + type ErrorCode int + const ErrAmbigContext + const ErrBadHTML + const ErrBranchEnd + const ErrEndContext + const ErrNoSuchTemplate + const ErrOutputContext + const ErrPartialCharset + const ErrPartialEscape + const ErrRangeLoopReentry + const ErrSlashAmbig + const OK + type FuncMap map[string]interface + type HTML string + type HTMLAttr string + type JS string + type JSStr string + type Template struct + Tree *parse.Tree + func Must(t *Template, err error) *Template + func New(name string) *Template + 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) Delims(left, right string) *Template + func (t *Template) Execute(wr io.Writer, data interface{}) error + func (t *Template) ExecuteTemplate(wr io.Writer, 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) Parse(src string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) ParseGlob(pattern string) (*Template, error) + func (t *Template) Templates() []*Template + type URL string