summaryrefslogtreecommitdiff
path: root/template.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-01-25 20:04:03 -0500
committerGitHub <noreply@github.com>2024-01-25 20:04:03 -0500
commitf1d9158ea99abbe556251c1ff2fe970f3b460ee9 (patch)
tree1d369d622cdcc5b6251702043fdb5dc89fe7f91a /template.go
parent024be4b45eb51f524a242bfb97a8ed8345a0873f (diff)
Remove support for deprecated key/value array form of template config (#1976)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'template.go')
-rw-r--r--template.go4
1 files changed, 2 insertions, 2 deletions
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 {