Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileOption ¶
type CompileOption[T any] interface { ApplyTo(T) }
CompileOption is the interface for compile options.
type LoadOption ¶
type LoadOption[T any] interface { ApplyTo(T) }
LoadOption is the interface for load options.
type Loader ¶
type Loader[T any, U any] interface { LoadTemplate(context.Context, string, ...LoadOption[T]) (Template[U], error) }
Loader is the interface for loading template.
type Template ¶
type Template[T any] interface { Compile(...CompileOption[T]) string }
Template is the interface for template.
Click to show internal directories.
Click to hide internal directories.