Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Log *slog.Logger
TemplateString string
Data any
// Validate allows the validation of the rendered template on a given temp file path, optional
Validate func(path string) error
// An optional prefix when creating tmp files
TmpFilePrefix string
Fs afero.Fs
}
Config provides a config for the template Renderer
Click to show internal directories.
Click to hide internal directories.