diff options
| author | nytpu <alex@nytpu.com> | 2021-03-18 11:36:57 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-03-18 11:36:57 -0600 |
| commit | 6cf5ca01cf4123b66c75471ce61f93213badf820 (patch) | |
| tree | 7f83175d543d47bebc29abc14d5dcfed54921e67 /core/core.go | |
| parent | 00de991f6bc39c0f46d5124bddedd4e309829817 (diff) | |
Changed url.URL to string so the json is less bloated
Diffstat (limited to 'core/core.go')
| -rw-r--r-- | core/core.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/core.go b/core/core.go index 1f92d76..a97b8e3 100644 --- a/core/core.go +++ b/core/core.go @@ -16,7 +16,6 @@ import ( "encoding/json" "fmt" "io/ioutil" - "net/url" "os" "path/filepath" "sync" @@ -55,10 +54,10 @@ func Init(dataPath string) error { } if Data.Feeds == nil { - Data.Feeds = make(map[url.URL]*Feed) + Data.Feeds = make(map[string]*Feed) } if Data.Pages == nil { - Data.Pages = make(map[url.URL]*Page) + Data.Pages = make(map[string]*Page) } return nil } |
