feat: rename browser layout and add generics util function

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-08 19:06:04 +08:00
parent 87a026a13e
commit a6efcff6ea
24 changed files with 1717 additions and 244 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
"github.com/gocarina/gocsv"
jsoniter "github.com/json-iterator/go"
"hack-browser-data/internal/data"
"hack-browser-data/internal/browingdata"
)
type outPutter struct {
@@ -35,7 +35,7 @@ func (o *outPutter) MakeDir(dir string) error {
return nil
}
func (o *outPutter) Write(data data.BrowsingData, writer *os.File) error {
func (o *outPutter) Write(data browingdata.Source, writer *os.File) error {
switch o.json {
case true:
encoder := jsoniter.NewEncoder(writer)