Skip to content

Commit

Permalink
Show import blocks some love
Browse files Browse the repository at this point in the history
Regrouping the imports becuase there was no obvious reason to seprate them.
Also removed a commented out import, because that is what git is for :D.
  • Loading branch information
mmlb committed Feb 4, 2020
1 parent 9b6b9ea commit ac93d07
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 26 deletions.
6 changes: 2 additions & 4 deletions cmd/cnetflow/cnetflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ package main
import (
"flag"
"fmt"
"net/http"
"os"
"runtime"

"github.com/cloudflare/goflow/v3/transport"
"github.com/cloudflare/goflow/v3/utils"
log "github.com/sirupsen/logrus"

"net/http"

"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
6 changes: 2 additions & 4 deletions cmd/cnflegacy/cnflegacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ package main
import (
"flag"
"fmt"
"net/http"
"os"
"runtime"

"github.com/cloudflare/goflow/v3/transport"
"github.com/cloudflare/goflow/v3/utils"
log "github.com/sirupsen/logrus"

"net/http"

"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
6 changes: 2 additions & 4 deletions cmd/csflow/csflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ package main
import (
"flag"
"fmt"
"net/http"
"os"
"runtime"

"github.com/cloudflare/goflow/v3/transport"
"github.com/cloudflare/goflow/v3/utils"
log "github.com/sirupsen/logrus"

"net/http"

"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
9 changes: 3 additions & 6 deletions cmd/goflow/goflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@ package main
import (
"flag"
"fmt"
"net/http"
"os"
"runtime"
"sync"

"github.com/cloudflare/goflow/v3/transport"
"github.com/cloudflare/goflow/v3/utils"
log "github.com/sirupsen/logrus"

"net/http"

"github.com/prometheus/client_golang/prometheus/promhttp"

"sync"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
13 changes: 5 additions & 8 deletions transport/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@ package transport
import (
"crypto/tls"
"crypto/x509"
"fmt"
"strings"

flowmessage "github.com/cloudflare/goflow/v3/pb"
"github.com/cloudflare/goflow/v3/utils"
proto "github.com/golang/protobuf/proto"

//"github.com/golang/protobuf/descriptor"
"errors"
"flag"
"fmt"
"os"
"reflect"
"strings"

sarama "github.com/Shopify/sarama"
flowmessage "github.com/cloudflare/goflow/v3/pb"
"github.com/cloudflare/goflow/v3/utils"
proto "github.com/golang/protobuf/proto"
)

var (
Expand Down

0 comments on commit ac93d07

Please sign in to comment.