diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:21:47 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-26 00:21:47 +0200 |
commit | 87fd0ad3e9309064fe9fda373035f5ce127ae8d8 (patch) | |
tree | 0a076418994872a12c26b98320f600668722f25e /internal/feed/template/template.go | |
parent | 92b3181672b62052d4193749cd02f4be7d91e2ee (diff) | |
download | feed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.tar.gz feed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.tar.bz2 feed2imap-go-87fd0ad3e9309064fe9fda373035f5ce127ae8d8.zip |
Improved HTML template
Diffstat (limited to 'internal/feed/template/template.go')
-rw-r--r-- | internal/feed/template/template.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/feed/template/template.go b/internal/feed/template/template.go index 7871e06..4c7b636 100644 --- a/internal/feed/template/template.go +++ b/internal/feed/template/template.go @@ -9,11 +9,11 @@ import ( "github.com/Necoro/feed2imap-go/pkg/log" ) -func dict(v ...string) map[string]string { - dict := map[string]string{} +func dict(v ...interface{}) map[string]interface{} { + dict := make(map[string]interface{}) lenv := len(v) for i := 0; i < lenv; i += 2 { - key := v[i] + key := v[i].(string) if i+1 >= lenv { dict[key] = "" continue |