Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrParseTemplate = errors.New("template: parse template files")
)
Functions ¶
This section is empty.
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.
type Template ¶
type Template interface { // Execute applies a parsed template to the specified data object, writing the output to wr Execute(wr io.Writer, data any) error // ExecuteTemplate applies the template associated with t that has the given // name to the specified data object and writes the output to wr. ExecuteTemplate(wr io.Writer, name string, data any) error }
Click to show internal directories.
Click to hide internal directories.