Skip to content

Commit fbe1426

Browse files
committed
run goimports with -ed
1 parent a0a8127 commit fbe1426

21 files changed

+28
-26
lines changed

http/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/jukylin/esim/config"
1212
"github.com/jukylin/esim/log"
1313
"github.com/prometheus/client_golang/prometheus"
14-
"github.com/prometheus/client_model/go"
14+
io_prometheus_client "github.com/prometheus/client_model/go"
1515
"github.com/stretchr/testify/assert"
1616
)
1717

infra/infraer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010

1111
"github.com/jukylin/esim/log"
1212
"github.com/jukylin/esim/pkg"
13-
"github.com/jukylin/esim/pkg/file-dir"
13+
file_dir "github.com/jukylin/esim/pkg/file-dir"
1414
"github.com/jukylin/esim/pkg/templates"
15-
"github.com/jukylin/esim/tool/db2entity/domain-file"
15+
domain_file "github.com/jukylin/esim/tool/db2entity/domain-file"
1616
"github.com/spf13/viper"
1717
"golang.org/x/tools/imports"
1818
)

mysql/mysql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/ory/dockertest/v3"
1414
dc "github.com/ory/dockertest/v3/docker"
1515
"github.com/prometheus/client_golang/prometheus"
16-
"github.com/prometheus/client_model/go"
16+
io_prometheus_client "github.com/prometheus/client_model/go"
1717
"github.com/stretchr/testify/assert"
1818
)
1919

redis/redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/ory/dockertest/v3"
1313
dc "github.com/ory/dockertest/v3/docker"
1414
"github.com/prometheus/client_golang/prometheus"
15-
"github.com/prometheus/client_model/go"
15+
io_prometheus_client "github.com/prometheus/client_model/go"
1616
"github.com/stretchr/testify/assert"
1717
)
1818

tool/cmd/db2entity.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
package cmd
22

33
import (
4-
"github.com/spf13/cobra"
54
"os"
65

6+
"github.com/spf13/cobra"
7+
78
"github.com/jukylin/esim/infra"
89
"github.com/jukylin/esim/pkg"
9-
"github.com/jukylin/esim/pkg/file-dir"
10+
file_dir "github.com/jukylin/esim/pkg/file-dir"
1011
"github.com/jukylin/esim/pkg/templates"
1112
"github.com/jukylin/esim/tool/db2entity"
12-
"github.com/jukylin/esim/tool/db2entity/domain-file"
13+
domain_file "github.com/jukylin/esim/tool/db2entity/domain-file"
1314
)
1415

1516
var db2entityCmd = &cobra.Command{

tool/cmd/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"github.com/jukylin/esim/pkg/file-dir"
4+
file_dir "github.com/jukylin/esim/pkg/file-dir"
55
"github.com/jukylin/esim/pkg/templates"
66
"github.com/jukylin/esim/tool/factory"
77
"github.com/spf13/cobra"

tool/cmd/ifacer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"github.com/jukylin/esim/pkg/file-dir"
4+
file_dir "github.com/jukylin/esim/pkg/file-dir"
55
"github.com/jukylin/esim/pkg/templates"
66
"github.com/jukylin/esim/tool/ifacer"
77
"github.com/spf13/cobra"

tool/cmd/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"github.com/jukylin/esim/pkg/file-dir"
4+
file_dir "github.com/jukylin/esim/pkg/file-dir"
55
"github.com/jukylin/esim/pkg/templates"
66
"github.com/jukylin/esim/tool/new"
77
"github.com/spf13/cobra"

tool/db2entity/db2entity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import (
55

66
"github.com/jukylin/esim/log"
77
"github.com/jukylin/esim/pkg"
8-
"github.com/jukylin/esim/pkg/file-dir"
8+
file_dir "github.com/jukylin/esim/pkg/file-dir"
99

1010
"errors"
1111
"os"
1212
"path/filepath"
1313

1414
"github.com/jukylin/esim/infra"
1515
"github.com/jukylin/esim/pkg/templates"
16-
"github.com/jukylin/esim/tool/db2entity/domain-file"
16+
domain_file "github.com/jukylin/esim/tool/db2entity/domain-file"
1717
"github.com/serenize/snaker"
1818
"github.com/spf13/viper"
1919
"golang.org/x/tools/imports"

tool/db2entity/db2entity_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"github.com/jukylin/esim/infra"
99
"github.com/jukylin/esim/log"
1010
"github.com/jukylin/esim/pkg"
11-
"github.com/jukylin/esim/pkg/file-dir"
11+
file_dir "github.com/jukylin/esim/pkg/file-dir"
1212
"github.com/jukylin/esim/pkg/templates"
13-
"github.com/jukylin/esim/tool/db2entity/domain-file"
13+
domain_file "github.com/jukylin/esim/tool/db2entity/domain-file"
1414
"github.com/spf13/viper"
1515
"github.com/stretchr/testify/assert"
1616
)

0 commit comments

Comments
 (0)