From f1d9158ea99abbe556251c1ff2fe970f3b460ee9 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Thu, 25 Jan 2024 20:04:03 -0500 Subject: Remove support for deprecated key/value array form of template config (#1976) Signed-off-by: Dave Henderson --- template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template.go') diff --git a/template.go b/template.go index 8c0aa64a..2705e7de 100644 --- a/template.go +++ b/template.go @@ -49,7 +49,7 @@ func copyFuncMap(funcMap template.FuncMap) template.FuncMap { } // parseTemplate - parses text as a Go template with the given name and options -func parseTemplate(ctx context.Context, name, text string, funcs template.FuncMap, tmplctx interface{}, nested config.Templates, leftDelim, rightDelim string, missingKey string) (tmpl *template.Template, err error) { +func parseTemplate(ctx context.Context, name, text string, funcs template.FuncMap, tmplctx interface{}, nested map[string]config.DataSource, leftDelim, rightDelim string, missingKey string) (tmpl *template.Template, err error) { tmpl = template.New(name) if missingKey == "" { missingKey = "error" @@ -81,7 +81,7 @@ func parseTemplate(ctx context.Context, name, text string, funcs template.FuncMa return tmpl, nil } -func parseNestedTemplates(ctx context.Context, nested config.Templates, tmpl *template.Template) error { +func parseNestedTemplates(ctx context.Context, nested map[string]config.DataSource, tmpl *template.Template) error { fsp := datafs.FSProviderFromContext(ctx) for alias, n := range nested { -- cgit v1.2.3