aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/template/funcs.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
commit79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 (patch)
treecbfd034a362666b8dab842d3afed18cf95124ede /internal/feed/template/funcs.go
parent7822c9d443458ae9d1d9d678e279bfc516da7a8f (diff)
downloadfeed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.gz
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.bz2
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.zip
Replace `interface{}` by `any`
Diffstat (limited to '')
-rw-r--r--internal/feed/template/funcs.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/feed/template/funcs.go b/internal/feed/template/funcs.go
index 30a2975..fbfb572 100644
--- a/internal/feed/template/funcs.go
+++ b/internal/feed/template/funcs.go
@@ -10,8 +10,8 @@ import (
)
// dict creates a map out of the passed in key/value pairs.
-func dict(v ...interface{}) map[string]interface{} {
- dict := make(map[string]interface{})
+func dict(v ...any) map[string]any {
+ dict := make(map[string]any)
lenv := len(v)
for i := 0; i < lenv; i += 2 {
key := v[i].(string)
@@ -63,7 +63,7 @@ func _html(s string) html.HTML {
return html.HTML(s)
}
-var funcMap = map[string]interface{}{
+var funcMap = map[string]any{
"dict": dict,
"join": join,
"lastUrlPart": lastUrlPart,