1
0
Fork 0

Import order as goimports does

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2016-12-30 09:21:13 +01:00
parent e4952cd145
commit 8a348423ae
37 changed files with 91 additions and 71 deletions

View file

@ -2,12 +2,13 @@ package middlewares
import (
"fmt"
"net/http"
"strings"
"github.com/abbot/go-http-auth"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/log"
"github.com/containous/traefik/types"
"net/http"
"strings"
)
// Authenticator is a middleware that provides HTTP basic and digest authentication

View file

@ -2,13 +2,14 @@ package middlewares
import (
"fmt"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/types"
"github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
"github.com/codegangsta/negroni"
"github.com/containous/traefik/types"
"github.com/stretchr/testify/assert"
)
func TestBasicAuthFail(t *testing.T) {

View file

@ -1,8 +1,9 @@
package middlewares
import (
"github.com/NYTimes/gziphandler"
"net/http"
"github.com/NYTimes/gziphandler"
)
// Compress is a middleware that allows redirections

View file

@ -1,9 +1,10 @@
package middlewares
import (
"net/http"
"github.com/containous/mux"
"github.com/containous/traefik/safe"
"net/http"
)
// HandlerSwitcher allows hot switching of http.ServeMux

View file

@ -2,8 +2,6 @@ package middlewares
import (
"fmt"
shellwords "github.com/mattn/go-shellwords"
"github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"
"net/url"
@ -11,6 +9,9 @@ import (
"path/filepath"
"runtime"
"testing"
shellwords "github.com/mattn/go-shellwords"
"github.com/stretchr/testify/assert"
)
type logtestResponseWriter struct{}

View file

@ -3,10 +3,11 @@ package middlewares
import (
"bufio"
"bytes"
"github.com/containous/traefik/log"
"github.com/vulcand/oxy/utils"
"net"
"net/http"
"github.com/containous/traefik/log"
"github.com/vulcand/oxy/utils"
)
var (

View file

@ -1,9 +1,10 @@
package middlewares
import (
"net/http"
"github.com/containous/traefik/log"
"github.com/vulcand/vulcand/plugin/rewrite"
"net/http"
)
// Rewrite is a middleware that allows redirections