goimports files

This commit is contained in:
Andrey Meshkov 2018-11-05 23:52:11 +03:00
parent efdd1c1ff2
commit 7f018234f6
7 changed files with 19 additions and 12 deletions

View File

@ -2,9 +2,10 @@ package upstream
import ( import (
"crypto/tls" "crypto/tls"
"time"
"github.com/miekg/dns" "github.com/miekg/dns"
"golang.org/x/net/context" "golang.org/x/net/context"
"time"
) )
// DnsUpstream is a very simple upstream implementation for plain DNS // DnsUpstream is a very simple upstream implementation for plain DNS

View File

@ -1,10 +1,11 @@
package upstream package upstream
import ( import (
"github.com/miekg/dns"
"golang.org/x/net/context"
"net" "net"
"strings" "strings"
"github.com/miekg/dns"
"golang.org/x/net/context"
) )
// Detects the upstream type from the specified url and creates a proper Upstream object // Detects the upstream type from the specified url and creates a proper Upstream object

View File

@ -4,16 +4,17 @@ import (
"bytes" "bytes"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/miekg/dns"
"github.com/pkg/errors"
"golang.org/x/net/context"
"golang.org/x/net/http2"
"io/ioutil" "io/ioutil"
"log" "log"
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
"time" "time"
"github.com/miekg/dns"
"github.com/pkg/errors"
"golang.org/x/net/context"
"golang.org/x/net/http2"
) )
const ( const (

View File

@ -1,10 +1,11 @@
package upstream package upstream
import ( import (
"log"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/mholt/caddy" "github.com/mholt/caddy"
"log"
) )
func init() { func init() {

View File

@ -1,8 +1,9 @@
package upstream package upstream
import ( import (
"github.com/mholt/caddy"
"testing" "testing"
"github.com/mholt/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View File

@ -1,11 +1,12 @@
package upstream package upstream
import ( import (
"time"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context" "golang.org/x/net/context"
"time"
) )
const ( const (

View File

@ -1,10 +1,11 @@
package upstream package upstream
import ( import (
"github.com/miekg/dns"
"golang.org/x/net/context"
"net" "net"
"testing" "testing"
"github.com/miekg/dns"
"golang.org/x/net/context"
) )
func TestDnsUpstreamIsAlive(t *testing.T) { func TestDnsUpstreamIsAlive(t *testing.T) {