Documentation
¶
Index ¶
- func BuildContextFuncMap(ctx context.Context, funcs map[string]func(context.Context) any) template.FuncMap
- func BuildPlaceholderFuncMap(funcs map[string]func(context.Context) any) template.FuncMap
- func CloneContextFuncs(funcs map[string]func(context.Context) any) map[string]func(context.Context) any
- func CloneFuncs(funcs map[string]any) map[string]any
- func NormalizeName(name string) string
- func SameModTime(a time.Time, b time.Time) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContextFuncMap ¶
func BuildContextFuncMap(ctx context.Context, funcs map[string]func(context.Context) any) template.FuncMap
BuildContextFuncMap builds render-time template functions.
func BuildPlaceholderFuncMap ¶
BuildPlaceholderFuncMap builds parse-time placeholders for request-scoped template functions.
func CloneContextFuncs ¶
func CloneContextFuncs(funcs map[string]func(context.Context) any) map[string]func(context.Context) any
CloneContextFuncs clones a request-scoped template function map.
func CloneFuncs ¶
CloneFuncs clones a static template function map.
func NormalizeName ¶
NormalizeName normalizes a template name used for lookup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.