diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-04-24 18:53:32 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-04-24 18:53:32 +0200 |
commit | 79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 (patch) | |
tree | cbfd034a362666b8dab842d3afed18cf95124ede /pkg/config/config.go | |
parent | 7822c9d443458ae9d1d9d678e279bfc516da7a8f (diff) | |
download | feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.gz feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.bz2 feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.zip |
Replace `interface{}` by `any`
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r-- | pkg/config/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go index a580337..a7c540f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -13,7 +13,7 @@ import ( // Map is a convenience type for the non-mapped configuration options // Mostly used for legacy options -type Map map[string]interface{} +type Map map[string]any // GlobalOptions are not feed specific type GlobalOptions struct { @@ -108,12 +108,12 @@ func (cfg *Config) Validate() error { // WithPartText marks whether 'text' part should be included in mails func (opt GlobalOptions) WithPartText() bool { - return util.StrContains(opt.Parts, "text") + return util.Contains(opt.Parts, "text") } // WithPartHtml marks whether 'html' part should be included in mails func (opt GlobalOptions) WithPartHtml() bool { - return util.StrContains(opt.Parts, "html") + return util.Contains(opt.Parts, "html") } // Load configuration from file and validate it |