Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoTemplateEngine ¶
func NewGoTemplateEngine(opts ...TemplateOption) ports.TemplateEngine
NewGoTemplateEngine creates a new GoTemplateEngine.
Types ¶
type GoTemplateEngine ¶
type GoTemplateEngine struct {
// contains filtered or unexported fields
}
GoTemplateEngine implements TemplateEngine using standard text/template.
type TemplateOption ¶
type TemplateOption func(*templateConfig)
TemplateOption configures a GoTemplateEngine.
func WithStrict ¶
func WithStrict(enabled bool) TemplateOption
WithStrict enables/disables strict mode for missing keys. When enabled (default), template rendering fails if a referenced key is missing.
Click to show internal directories.
Click to hide internal directories.