aboutsummaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 22:00:56 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 22:00:56 +0200
commit9b982a82c150c65a5f72c9b548053553b2c3b0fb (patch)
tree81b203c9500e345710ac26dea6eda690b936d6ff /internal/config/config.go
parentfe3d64998545eb4fbddb26e79eefeb3fa89bbbdd (diff)
downloadfeed2imap-go-9b982a82c150c65a5f72c9b548053553b2c3b0fb.tar.gz
feed2imap-go-9b982a82c150c65a5f72c9b548053553b2c3b0fb.tar.bz2
feed2imap-go-9b982a82c150c65a5f72c9b548053553b2c3b0fb.zip
Store path as array -- the delimiter is not always '.'
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index e330a48..fa14315 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -41,7 +41,7 @@ type Config struct {
type Feed struct {
Name string
- Target string `yaml:"-"`
+ Target []string `yaml:"-"`
Url string
MinFreq int `yaml:"min-frequency"`
InclImages *bool `yaml:"include-images"`
@@ -65,7 +65,7 @@ func Load(path string) (Config, error) {
Feeds: make(Feeds),
}
- if err := buildFeeds(parsedCfg.Feeds, "", finishedCfg.Feeds); err != nil {
+ if err := buildFeeds(parsedCfg.Feeds, []string{}, finishedCfg.Feeds); err != nil {
return finishedCfg, fmt.Errorf("while parsing: %w", err)
}