1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-19 22:15:23 +00:00

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

This commit is contained in:
Loyalsoldier 2021-05-01 11:15:39 +08:00 committed by GitHub
parent 0fe129de65
commit 625a15e03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 13 deletions

View File

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

View File

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

View File

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

View File

@ -6,9 +6,8 @@ import (
"context" "context"
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/app/observatory" "github.com/v2fly/v2ray-core/v4/app/observatory"
"github.com/v2fly/v2ray-core/v4/common"
"github.com/v2fly/v2ray-core/v4/features/extension" "github.com/v2fly/v2ray-core/v4/features/extension"
) )

View File

@ -6,7 +6,6 @@ import (
"os" "os"
commlog "github.com/v2fly/v2ray-core/v4/common/log" 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" "github.com/v2fly/v2ray-core/v4/infra/control"
) )

View File

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

View File

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