Versions in this module Expand all Collapse all v1 v1.2.3 Jan 20, 2023 v1.2.2 Jan 20, 2023 v1.2.1 Jan 20, 2023 v1.2.0 Jan 20, 2023 v1.1.0 Jan 8, 2023 v1.0.5 Jan 20, 2023 v1.0.4 Jan 20, 2023 v1.0.3 Jan 20, 2023 v1.0.2 Jan 20, 2023 v1.0.0 Jan 8, 2023 Changes in this version + func GetRGB(color string) []int + 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 SplitCamelCase(src string) (entries []string) + func StripTags(html string) string + func ToCamel(s string) string + func URLQueryEscaper(args ...interface{}) string + func ValidateEmail(email string) bool + func ValidateSubdomain(email string) bool + 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