From 6cf5ca01cf4123b66c75471ce61f93213badf820 Mon Sep 17 00:00:00 2001 From: nytpu Date: Thu, 18 Mar 2021 11:36:57 -0600 Subject: Changed url.URL to string so the json is less bloated --- core/core.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/core.go') 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 } -- cgit v1.2.3