package
0.0.0-20221106014756-28cd0dc4edaf
Repository: https://github.com/sdlp99/sdpkg.git
Documentation: pkg.go.dev
# Packages
Package parse builds parse trees for templates as defined by text/template and html/template.
# Functions
HTMLEscape writes to w the escaped HTML equivalent of the plain text data b.
HTMLEscaper returns the escaped HTML equivalent of the textual representation of its arguments.
HTMLEscapeString returns the escaped HTML equivalent of the plain text data s.
IsTrue reports whether the value is 'true', in the sense of not the zero of its type, and whether the value has a meaningful truth value.
JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.
JSEscaper returns the escaped JavaScript equivalent of the textual representation of its arguments.
JSEscapeString returns the escaped JavaScript equivalent of the plain text data s.
Must is a helper that wraps a call to a function returning (*Template, error) and panics if the error is non-nil.
New allocates a new, undefined template with the given name.
ParseFiles creates a new Template and parses the template definitions from the named files.
ParseFS is like ParseFiles or ParseGlob but reads from the file system fsys instead of the host operating system's file system.
ParseGlob creates a new Template and parses the template definitions from the files identified by the pattern.
URLQueryEscaper returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.
# Type aliases
FuncMap is the type of the map defining the mapping from names to functions.