mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-06-02 19:41:36 +02:00
feat: rename browser layout and add generics util function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user