Versions in this module Expand all Collapse all v0 v0.26.0 Nov 13, 2026 Changes in this version + var ErrOutputDeadline = errors.New("render: output deadline exceeded") + var ErrOutputTooLarge = errors.New("render: output too large") + var ErrReferenceCycle = errors.New("render: reference cycle") + var ErrTotalOutputTooLarge = errors.New("render: total output too large") + func HasTemplates(doc any, opts ...Option) bool + func Value(doc any, data map[string]any, opts ...Option) (any, error) + type CycleError struct + Fields []string + func (e *CycleError) Error() string + func (e *CycleError) Is(target error) bool + type FieldError struct + Err error + Path string + func (e *FieldError) Error() string + func (e *FieldError) Unwrap() error + type Option func(*config) + func WithFuncs(funcs template.FuncMap) Option + func WithMaxOutputBytes(n int) Option + func WithMaxTotalBytes(n int) Option + func WithMissingKeyError(b bool) Option + func WithOutputDeadline(d time.Duration) Option + func WithSelfKey(key string) Option + func WithSkip(skip func(path string) bool) Option