diff --git a/http_test.go b/http_test.go index 44181eb..2a5bf0d 100644 --- a/http_test.go +++ b/http_test.go @@ -1,9 +1,9 @@ package main import ( - "testing" "os/user" "path/filepath" + "testing" ) func TestPartCalculate(t *testing.T) { diff --git a/joiner.go b/joiner.go index dee8793..bb86427 100644 --- a/joiner.go +++ b/joiner.go @@ -1,8 +1,8 @@ package main import ( - "gopkg.in/cheggaaa/pb.v1" "github.com/fatih/color" + "gopkg.in/cheggaaa/pb.v1" "io" "os" "sort" diff --git a/joiner_test.go b/joiner_test.go index e0c1f18..fa883cc 100644 --- a/joiner_test.go +++ b/joiner_test.go @@ -1,12 +1,11 @@ package main import ( - "testing" "io/ioutil" "os" + "testing" ) - func TestJoiner(t *testing.T) { displayProgress = false diff --git a/main.go b/main.go index 50f8059..fbed9b6 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ var displayProgress = true func main() { var err error - conn := flag.Int("n", runtime.NumCPU(), "connection") + conn := flag.Int("n", runtime.NumCPU(), "connection") skiptls := flag.Bool("skip-tls", true, "skip verify certificate for https") flag.Parse() diff --git a/resume_test.go b/resume_test.go index 8fbb7c8..d222ed6 100644 --- a/resume_test.go +++ b/resume_test.go @@ -11,4 +11,4 @@ func prepareResume() { func cleanupResume() { -} \ No newline at end of file +} diff --git a/util.go b/util.go index 72f9b1e..74d9810 100644 --- a/util.go +++ b/util.go @@ -1,13 +1,13 @@ package main import ( + "errors" + "github.com/mattn/go-isatty" "net" + "net/url" "os" - "github.com/mattn/go-isatty" "path/filepath" - "errors" "strings" - "net/url" ) func FatalCheck(err error) { diff --git a/util_test.go b/util_test.go index 317b73a..05db411 100644 --- a/util_test.go +++ b/util_test.go @@ -1,11 +1,11 @@ package main import ( - "testing" "path/filepath" + "testing" ) -func TestFilterIpV4(t *testing.T){ +func TestFilterIpV4(t *testing.T) { } func TestFolderOfPanic1(t *testing.T) {