Versions in this module Expand all Collapse all v1 v1.1.3 Oct 12, 2017 v1.1.2 Oct 11, 2017 v1.1.1 Oct 11, 2017 v1.1.0 Oct 9, 2017 v1.0.0 Oct 9, 2017 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) 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