Skip to content

gofmt #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion http_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"testing"
"os/user"
"path/filepath"
"testing"
)

func TestPartCalculate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion joiner.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"gopkg.in/cheggaaa/pb.v1"
"github.com/fatih/color"
"gopkg.in/cheggaaa/pb.v1"
"io"
"os"
"sort"
Expand Down
3 changes: 1 addition & 2 deletions joiner_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package main

import (
"testing"
"io/ioutil"
"os"
"testing"
)


func TestJoiner(t *testing.T) {
displayProgress = false

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion resume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ func prepareResume() {

func cleanupResume() {

}
}
6 changes: 3 additions & 3 deletions util.go
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions util_test.go
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down