Browse Source

Chore: format code by new customized goimports (#950)

Loyalsoldier 4 years ago
parent
commit
625a15e03b

+ 1 - 2
app/browserforwarder/forwarder.go

@@ -9,13 +9,12 @@ import (
 	"net/http"
 	"time"
 
-	"github.com/v2fly/v2ray-core/v4/features/extension"
-
 	"github.com/v2fly/BrowserBridge/handler"
 
 	"github.com/v2fly/v2ray-core/v4/common"
 	"github.com/v2fly/v2ray-core/v4/common/net"
 	"github.com/v2fly/v2ray-core/v4/common/platform/securedload"
+	"github.com/v2fly/v2ray-core/v4/features/extension"
 	"github.com/v2fly/v2ray-core/v4/transport/internet"
 )
 

+ 1 - 2
app/dns/fakedns/fakedns_test.go

@@ -1,9 +1,8 @@
 package fakedns
 
 import (
-	"testing"
-
 	gonet "net"
+	"testing"
 
 	"github.com/stretchr/testify/assert"
 

+ 1 - 2
app/dns/nameserver_udp.go

@@ -9,10 +9,9 @@ import (
 	"sync/atomic"
 	"time"
 
-	core "github.com/v2fly/v2ray-core/v4"
-
 	"golang.org/x/net/dns/dnsmessage"
 
+	core "github.com/v2fly/v2ray-core/v4"
 	"github.com/v2fly/v2ray-core/v4/common"
 	"github.com/v2fly/v2ray-core/v4/common/net"
 	"github.com/v2fly/v2ray-core/v4/common/protocol/dns"

+ 1 - 2
app/router/strategy_leastping.go

@@ -6,9 +6,8 @@ import (
 	"context"
 
 	core "github.com/v2fly/v2ray-core/v4"
-	"github.com/v2fly/v2ray-core/v4/common"
-
 	"github.com/v2fly/v2ray-core/v4/app/observatory"
+	"github.com/v2fly/v2ray-core/v4/common"
 	"github.com/v2fly/v2ray-core/v4/features/extension"
 )
 

+ 0 - 1
infra/control/main/main.go

@@ -6,7 +6,6 @@ import (
 	"os"
 
 	commlog "github.com/v2fly/v2ray-core/v4/common/log"
-	// _ "github.com/v2fly/v2ray-core/v4/infra/conf/command"
 	"github.com/v2fly/v2ray-core/v4/infra/control"
 )
 

+ 0 - 1
transport/internet/headers/http/linkedreadRequest.go

@@ -3,7 +3,6 @@ package http
 import (
 	"bufio"
 	"net/http"
-
 	_ "unsafe" // required to use //go:linkname
 )
 

+ 2 - 3
transport/internet/websocket/dialer.go

@@ -9,14 +9,13 @@ import (
 	"io"
 	"time"
 
-	"github.com/v2fly/v2ray-core/v4/features/extension"
-
 	"github.com/gorilla/websocket"
-	core "github.com/v2fly/v2ray-core/v4"
 
+	core "github.com/v2fly/v2ray-core/v4"
 	"github.com/v2fly/v2ray-core/v4/common"
 	"github.com/v2fly/v2ray-core/v4/common/net"
 	"github.com/v2fly/v2ray-core/v4/common/session"
+	"github.com/v2fly/v2ray-core/v4/features/extension"
 	"github.com/v2fly/v2ray-core/v4/transport/internet"
 	"github.com/v2fly/v2ray-core/v4/transport/internet/tls"
 )