Browse Source

Chore: format code

loyalsoldier 4 years ago
parent
commit
a0c817888b

+ 5 - 3
app/browserforwarder/forwarder.go

@@ -5,15 +5,17 @@ package browserforwarder
 import (
 	"bytes"
 	"context"
+	"io"
+	"net/http"
+	"time"
+
 	"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/ext"
 	"github.com/v2fly/v2ray-core/v4/transport/internet"
-	"io"
-	"net/http"
-	"time"
 )
 
 //go:generate go run github.com/v2fly/v2ray-core/v4/common/errors/errorgen

+ 3 - 1
common/platform/securedload/embeddedhash.go

@@ -4,11 +4,13 @@ import (
 	"bytes"
 	"crypto/sha256"
 	"encoding/hex"
+	"strings"
+
 	"github.com/v2fly/VSign/insmgr"
 	"github.com/v2fly/VSign/signerVerify"
+
 	"github.com/v2fly/v2ray-core/v4/common/platform"
 	"github.com/v2fly/v2ray-core/v4/common/platform/filesystem"
-	"strings"
 )
 
 type EmbeddedHashProtectedLoader struct {

+ 1 - 0
infra/conf/browser_forwarder.go

@@ -2,6 +2,7 @@ package conf
 
 import (
 	"github.com/golang/protobuf/proto"
+
 	"github.com/v2fly/v2ray-core/v4/app/browserforwarder"
 )
 

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

@@ -6,11 +6,12 @@ import (
 	"bytes"
 	"context"
 	"encoding/base64"
-	core "github.com/v2fly/v2ray-core/v4"
-	"github.com/v2fly/v2ray-core/v4/features/ext"
 	"io"
 	"time"
 
+	core "github.com/v2fly/v2ray-core/v4"
+	"github.com/v2fly/v2ray-core/v4/features/ext"
+
 	"github.com/gorilla/websocket"
 
 	"github.com/v2fly/v2ray-core/v4/common"