From f557e4aa29f197da76b29ac3162d7d7a92f076ed Mon Sep 17 00:00:00 2001 From: Star Brilliant <coder@poorlab.com> Date: Tue, 24 Nov 2020 12:38:16 +0000 Subject: [PATCH] Reformat the code --- doh-client/client.go | 13 +++++++------ doh-client/google.go | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/doh-client/client.go b/doh-client/client.go index 91e5c9e..f738ce4 100644 --- a/doh-client/client.go +++ b/doh-client/client.go @@ -27,12 +27,6 @@ import ( "context" "crypto/tls" "fmt" - "github.com/m13253/dns-over-https/doh-client/config" - "github.com/m13253/dns-over-https/doh-client/selector" - jsondns "github.com/m13253/dns-over-https/json-dns" - "github.com/miekg/dns" - "golang.org/x/net/http2" - "golang.org/x/net/idna" "log" "math/rand" "net" @@ -43,6 +37,13 @@ import ( "strings" "sync" "time" + + "github.com/m13253/dns-over-https/doh-client/config" + "github.com/m13253/dns-over-https/doh-client/selector" + jsondns "github.com/m13253/dns-over-https/json-dns" + "github.com/miekg/dns" + "golang.org/x/net/http2" + "golang.org/x/net/idna" ) type Client struct { diff --git a/doh-client/google.go b/doh-client/google.go index 477c436..1e94612 100644 --- a/doh-client/google.go +++ b/doh-client/google.go @@ -35,7 +35,7 @@ import ( "strings" "github.com/m13253/dns-over-https/doh-client/selector" - "github.com/m13253/dns-over-https/json-dns" + jsondns "github.com/m13253/dns-over-https/json-dns" "github.com/miekg/dns" ) -- GitLab