Group and sort imports.

This commit is contained in:
Alexey Palazhchenko 2019-04-24 08:56:23 +03:00 committed by Will Rouesnel
parent f9bb147ee8
commit 84a575f29f
3 changed files with 7 additions and 13 deletions

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"crypto/sha256"
"database/sql" "database/sql"
"errors" "errors"
"fmt" "fmt"
@ -16,16 +17,13 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/alecthomas/kingpin.v2"
"gopkg.in/yaml.v2"
"crypto/sha256"
"github.com/blang/semver" "github.com/blang/semver"
"github.com/lib/pq" "github.com/lib/pq"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/log" "github.com/prometheus/common/log"
"gopkg.in/alecthomas/kingpin.v2"
"gopkg.in/yaml.v2"
) )
// Version is set during build to the git describe version // Version is set during build to the git describe version

View File

@ -6,16 +6,14 @@
package main package main
import ( import (
"fmt"
"os" "os"
"strings" "strings"
"testing" "testing"
. "gopkg.in/check.v1"
"fmt"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
. "gopkg.in/check.v1"
) )
// Hook up gocheck into the "go test" runner. // Hook up gocheck into the "go test" runner.

View File

@ -3,15 +3,13 @@
package main package main
import ( import (
"os"
"reflect" "reflect"
"testing" "testing"
. "gopkg.in/check.v1"
"os"
"github.com/blang/semver" "github.com/blang/semver"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
. "gopkg.in/check.v1"
) )
// Hook up gocheck into the "go test" runner. // Hook up gocheck into the "go test" runner.