Used goimports to fix import order (#2682)

Keeps the list sorted and prevents future merge conflicts.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 06:05:49 +02:00 committed by Matt Holt
parent d411b7d087
commit 3856ad03b0
13 changed files with 14 additions and 14 deletions

View File

@ -29,12 +29,12 @@ import (
"strconv"
"strings"
"github.com/google/uuid"
"github.com/klauspost/cpuid"
"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/caddyfile"
"github.com/caddyserver/caddy/caddytls"
"github.com/caddyserver/caddy/telemetry"
"github.com/google/uuid"
"github.com/klauspost/cpuid"
"github.com/mholt/certmagic"
lumberjack "gopkg.in/natefinch/lumberjack.v2"

View File

@ -33,8 +33,8 @@ import (
"strings"
"sync"
"github.com/jimstudt/http-authentication/basic"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/jimstudt/http-authentication/basic"
)
// BasicAuth is middleware to protect resources with a username and password.

View File

@ -29,9 +29,9 @@ import (
"text/template"
"time"
"github.com/dustin/go-humanize"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
"github.com/dustin/go-humanize"
)
const (

View File

@ -23,8 +23,8 @@ import (
"strings"
"sync"
gsyslog "github.com/hashicorp/go-syslog"
"github.com/caddyserver/caddy"
gsyslog "github.com/hashicorp/go-syslog"
)
var remoteSyslogPrefixes = map[string]string{

View File

@ -31,11 +31,11 @@ import (
"strings"
"time"
"github.com/lucas-clemente/quic-go/h2quic"
"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
"github.com/caddyserver/caddy/caddytls"
"github.com/caddyserver/caddy/telemetry"
"github.com/lucas-clemente/quic-go/h2quic"
)
// Server is the HTTP server implementation.

View File

@ -41,9 +41,9 @@ import (
"golang.org/x/net/http2"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/lucas-clemente/quic-go"
"github.com/lucas-clemente/quic-go/h2quic"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
)
var (

View File

@ -19,8 +19,8 @@ import (
"log"
"net/http"
"github.com/google/uuid"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/google/uuid"
)
// Handler is a middleware handler

View File

@ -29,8 +29,8 @@ import (
"strings"
"time"
"github.com/gorilla/websocket"
"github.com/caddyserver/caddy/caddyhttp/httpserver"
"github.com/gorilla/websocket"
)
const (

View File

@ -23,9 +23,9 @@ import (
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/caddyserver/caddy"
"github.com/go-acme/lego/certcrypto"
"github.com/klauspost/cpuid"
"github.com/caddyserver/caddy"
"github.com/mholt/certmagic"
)

View File

@ -21,8 +21,8 @@ import (
"os"
"testing"
"github.com/go-acme/lego/certcrypto"
"github.com/caddyserver/caddy"
"github.com/go-acme/lego/certcrypto"
"github.com/mholt/certmagic"
)

View File

@ -29,8 +29,8 @@
package caddytls
import (
"github.com/go-acme/lego/challenge"
"github.com/caddyserver/caddy"
"github.com/go-acme/lego/challenge"
"github.com/mholt/certmagic"
)

View File

@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/google/uuid"
"github.com/caddyserver/caddy"
"github.com/google/uuid"
)
func TestHook(t *testing.T) {

View File

@ -3,9 +3,9 @@ package onevent
import (
"strings"
"github.com/google/uuid"
"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/onevent/hook"
"github.com/google/uuid"
)
func init() {