Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseTemplate = errors.New("template: parse template files")
Functions ¶
func ExecuteHTTP ¶
func ExecuteHTTP(w http.ResponseWriter, t Template, data any)
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
An FS provides access to a file system that produces a safe HTML document templates.
func (*FS) Funcs ¶ added in v0.1.2
Funcs adds the elements of the argument map to the template's function map.
Click to show internal directories.
Click to hide internal directories.