Changed url.URL to string so the json is less bloated

This commit is contained in:
nytpu
2021-03-18 11:36:57 -06:00
parent 00de991f6b
commit 6cf5ca01cf
5 changed files with 23 additions and 20 deletions
+2 -3
View File
@@ -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
}