mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
feat: add copy file to local
This commit is contained in:
@@ -18,7 +18,7 @@ type outPutter struct {
|
||||
csv bool
|
||||
}
|
||||
|
||||
func NewOutPutter(flag string) *outPutter {
|
||||
func New(flag string) *outPutter {
|
||||
o := &outPutter{}
|
||||
if flag == "json" {
|
||||
o.json = true
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
func TestNewOutPutter(t *testing.T) {
|
||||
out := NewOutPutter("json")
|
||||
out := New("json")
|
||||
if out == nil {
|
||||
t.Error("NewOutPutter() returned nil")
|
||||
t.Error("New() returned nil")
|
||||
}
|
||||
f, err := out.CreateFile("results", "test.json")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user