Documentation ¶ Index ¶ func Funcs() template.FuncMap func Parse(tmpl string, opts ...Option) error func Render(tmpl string, data any, opts ...Option) (string, error) type Option func MissingKeyError() Option func WithFunc(name string, fn any) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Funcs ¶ func Funcs() template.FuncMap func Parse ¶ func Parse(tmpl string, opts ...Option) error func Render ¶ func Render(tmpl string, data any, opts ...Option) (string, error) Types ¶ type Option ¶ type Option func(*template.Template) func MissingKeyError ¶ func MissingKeyError() Option func WithFunc ¶ func WithFunc(name string, fn any) Option Source Files ¶ View all Source files gotmpl.go Click to show internal directories. Click to hide internal directories.