From 35f7fe3af67057b5595fe6abee62641a118f3461 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 9 Aug 2022 20:57:34 +0200 Subject: Upgrade to Go 1.19 --- internal/feed/template/funcs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/feed') diff --git a/internal/feed/template/funcs.go b/internal/feed/template/funcs.go index fbfb572..6487ae2 100644 --- a/internal/feed/template/funcs.go +++ b/internal/feed/template/funcs.go @@ -5,6 +5,7 @@ import ( html "html/template" "strconv" "strings" + text "text/template" "github.com/Necoro/feed2imap-go/pkg/log" ) @@ -63,7 +64,7 @@ func _html(s string) html.HTML { return html.HTML(s) } -var funcMap = map[string]any{ +var funcMap = text.FuncMap{ "dict": dict, "join": join, "lastUrlPart": lastUrlPart, -- cgit v1.2.3-70-g09d2