Skip to content

Commit 96d4ac2

Browse files
committed
lint - fix all goimports
1 parent 4bbb553 commit 96d4ac2

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

replication/backup_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ package replication
22

33
import (
44
"context"
5-
. "github.com/pingcap/check"
6-
"github.com/pingcap/errors"
7-
"github.com/siddontang/go-mysql/mysql"
85
"os"
96
"sync"
107
"time"
8+
9+
. "github.com/pingcap/check"
10+
"github.com/pingcap/errors"
11+
12+
"github.com/siddontang/go-mysql/mysql"
1113
)
1214

1315
func (t *testSyncerSuite) TestStartBackupEndInGivenTime(c *C) {

replication/binlogstreamer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package replication
22

33
import (
44
"context"
5+
"time"
6+
57
"github.com/pingcap/errors"
68
"github.com/siddontang/go-log/log"
7-
"time"
89
)
910

1011
var (

replication/event.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
"unicode"
1212

1313
"github.com/pingcap/errors"
14-
"github.com/satori/go.uuid"
14+
uuid "github.com/satori/go.uuid"
15+
1516
. "github.com/siddontang/go-mysql/mysql"
1617
)
1718

schema/schema.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"strings"
1212

1313
"github.com/pingcap/errors"
14+
1415
"github.com/siddontang/go-mysql/mysql"
1516
)
1617

@@ -33,8 +34,8 @@ const (
3334
TYPE_JSON // json
3435
TYPE_DECIMAL // decimal
3536
TYPE_MEDIUM_INT
36-
TYPE_BINARY // binary, varbinary
37-
TYPE_POINT // coordinates
37+
TYPE_BINARY // binary, varbinary
38+
TYPE_POINT // coordinates
3839
)
3940

4041
type TableColumn struct {
@@ -162,7 +163,7 @@ func getSizeFromColumnType(columnType string) uint {
162163
return 0
163164
}
164165

165-
i, err := strconv.Atoi(columnType[startIndex+1:endIndex])
166+
i, err := strconv.Atoi(columnType[startIndex+1 : endIndex])
166167
if err != nil || i < 0 {
167168
return 0
168169
}

0 commit comments

Comments
 (0)