Skip to content

Commit 42829ad

Browse files
committed
optimize imports
1 parent 4f1573b commit 42829ad

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
lines changed

batch_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
package gocql
2929

3030
import (
31-
"github.com/stretchr/testify/require"
3231
"testing"
3332
"time"
33+
34+
"github.com/stretchr/testify/require"
3435
)
3536

3637
func TestBatch_Errors(t *testing.T) {

gocqlzap/zap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
package gocqlzap
2020

2121
import (
22-
"github.com/gocql/gocql"
2322
"go.uber.org/zap"
23+
24+
"github.com/gocql/gocql"
2425
)
2526

2627
const DefaultName = "gocql"

gocqlzap/zap_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ package gocqlzap
2323

2424
import (
2525
"bytes"
26-
"github.com/gocql/gocql"
27-
"go.uber.org/zap"
28-
"go.uber.org/zap/zapcore"
2926
"io"
3027
"strings"
3128
"testing"
29+
30+
"go.uber.org/zap"
31+
"go.uber.org/zap/zapcore"
32+
33+
"github.com/gocql/gocql"
3234
)
3335

3436
const logLineEnding = "%%%\n%%%"

gocqlzerolog/zerolog.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
package gocqlzerolog
2020

2121
import (
22-
"github.com/gocql/gocql"
2322
"github.com/rs/zerolog"
23+
24+
"github.com/gocql/gocql"
2425
)
2526

2627
const DefaultName = "gocql"

gocqlzerolog/zerolog_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ package gocqlzerolog
2323

2424
import (
2525
"bytes"
26-
"github.com/gocql/gocql"
27-
"github.com/rs/zerolog"
2826
"strings"
2927
"testing"
28+
29+
"github.com/rs/zerolog"
30+
31+
"github.com/gocql/gocql"
3032
)
3133

3234
const logLineEnding = "%%%\n%%%"

lz4/lz4_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
package lz4
2929

3030
import (
31-
"github.com/pierrec/lz4/v4"
3231
"testing"
3332

33+
"github.com/pierrec/lz4/v4"
34+
3435
"github.com/stretchr/testify/require"
3536
)
3637

stress_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ package gocql
2929

3030
import (
3131
"sync/atomic"
32-
3332
"testing"
3433
)
3534

vector_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ package gocql
2929

3030
import (
3131
"fmt"
32-
"github.com/stretchr/testify/require"
33-
"gopkg.in/inf.v0"
3432
"net"
3533
"reflect"
3634
"testing"
3735
"time"
36+
37+
"github.com/stretchr/testify/require"
38+
"gopkg.in/inf.v0"
3839
)
3940

4041
type person struct {

0 commit comments

Comments
 (0)