diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-08-09 20:57:34 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2023-01-22 23:22:08 +0100 |
commit | 35f7fe3af67057b5595fe6abee62641a118f3461 (patch) | |
tree | 36db53f8b299e9dd4034d1174768129a7b85b870 /internal/feed/template/funcs.go | |
parent | 35350d76a03e48d62db6eecb8b6da5ea41fd9dfd (diff) | |
download | feed2imap-go-35f7fe3af67057b5595fe6abee62641a118f3461.tar.gz feed2imap-go-35f7fe3af67057b5595fe6abee62641a118f3461.tar.bz2 feed2imap-go-35f7fe3af67057b5595fe6abee62641a118f3461.zip |
Upgrade to Go 1.19
Diffstat (limited to 'internal/feed/template/funcs.go')
-rw-r--r-- | internal/feed/template/funcs.go | 3 |
1 files changed, 2 insertions, 1 deletions
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, |