From cec1fdc568b425594ec851f3910de240051679c4 Mon Sep 17 00:00:00 2001 From: PumpkinSeed Date: Thu, 18 Mar 2021 07:30:47 +0100 Subject: [PATCH] Go imports --- drivers/entry.go | 3 ++- main_test.go | 3 ++- pkg/action/action.go | 3 +-- pkg/connector/connector.go | 5 +++-- pkg/fuzzer/runner.go | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/entry.go b/drivers/entry.go index 47d1009..897d449 100644 --- a/drivers/entry.go +++ b/drivers/entry.go @@ -2,8 +2,9 @@ package drivers import ( "database/sql" - "github.com/volatiletech/null" "log" + + "github.com/volatiletech/null" ) type Type int16 diff --git a/main_test.go b/main_test.go index bdd6916..2e28b39 100644 --- a/main_test.go +++ b/main_test.go @@ -2,12 +2,13 @@ package main import ( "fmt" + "testing" + "github.com/PumpkinSeed/sqlfuzz/drivers" "github.com/PumpkinSeed/sqlfuzz/pkg/connector" "github.com/PumpkinSeed/sqlfuzz/pkg/flags" "github.com/PumpkinSeed/sqlfuzz/pkg/fuzzer" "github.com/brianvoe/gofakeit/v5" - "testing" ) func TestFuzz(t *testing.T) { diff --git a/pkg/action/action.go b/pkg/action/action.go index 0d7d774..a207561 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -11,10 +11,9 @@ import ( "strings" "time" - _ "github.com/lib/pq" - "github.com/PumpkinSeed/sqlfuzz/drivers" "github.com/brianvoe/gofakeit/v5" + _ "github.com/lib/pq" "github.com/rs/xid" ) diff --git a/pkg/connector/connector.go b/pkg/connector/connector.go index 781b4c5..e8a309a 100644 --- a/pkg/connector/connector.go +++ b/pkg/connector/connector.go @@ -2,10 +2,11 @@ package connector import ( "database/sql" - "github.com/PumpkinSeed/sqlfuzz/drivers" - _ "github.com/lib/pq" "log" "sync" + + "github.com/PumpkinSeed/sqlfuzz/drivers" + _ "github.com/lib/pq" ) var ( diff --git a/pkg/fuzzer/runner.go b/pkg/fuzzer/runner.go index 0f3b11c..035c380 100644 --- a/pkg/fuzzer/runner.go +++ b/pkg/fuzzer/runner.go @@ -2,13 +2,13 @@ package fuzzer import ( "database/sql" - _ "github.com/lib/pq" "log" "sync" "github.com/PumpkinSeed/sqlfuzz/drivers" "github.com/PumpkinSeed/sqlfuzz/pkg/action" "github.com/PumpkinSeed/sqlfuzz/pkg/flags" + _ "github.com/lib/pq" ) // Run the commands in a worker pool