Skip to content

Commit 84a575f

Browse files
AlekSiwrouesnel
authored andcommitted
Group and sort imports.
1 parent f9bb147 commit 84a575f

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

cmd/postgres_exporter/postgres_exporter.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"crypto/sha256"
45
"database/sql"
56
"errors"
67
"fmt"
@@ -16,16 +17,13 @@ import (
1617
"sync"
1718
"time"
1819

19-
"gopkg.in/alecthomas/kingpin.v2"
20-
"gopkg.in/yaml.v2"
21-
22-
"crypto/sha256"
23-
2420
"github.com/blang/semver"
2521
"github.com/lib/pq"
2622
"github.com/prometheus/client_golang/prometheus"
2723
"github.com/prometheus/client_golang/prometheus/promhttp"
2824
"github.com/prometheus/common/log"
25+
"gopkg.in/alecthomas/kingpin.v2"
26+
"gopkg.in/yaml.v2"
2927
)
3028

3129
// Version is set during build to the git describe version

cmd/postgres_exporter/postgres_exporter_integration_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
package main
77

88
import (
9+
"fmt"
910
"os"
1011
"strings"
1112
"testing"
1213

13-
. "gopkg.in/check.v1"
14-
15-
"fmt"
16-
1714
_ "github.com/lib/pq"
1815
"github.com/prometheus/client_golang/prometheus"
16+
. "gopkg.in/check.v1"
1917
)
2018

2119
// Hook up gocheck into the "go test" runner.

cmd/postgres_exporter/postgres_exporter_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
package main
44

55
import (
6+
"os"
67
"reflect"
78
"testing"
89

9-
. "gopkg.in/check.v1"
10-
11-
"os"
12-
1310
"github.com/blang/semver"
1411
"github.com/prometheus/client_golang/prometheus"
12+
. "gopkg.in/check.v1"
1513
)
1614

1715
// Hook up gocheck into the "go test" runner.

0 commit comments

Comments
 (0)