Style: format code

This commit is contained in:
Arthur Morgan 2021-09-20 21:00:55 +08:00
parent ab927d2cca
commit ffc2f7c4e2
78 changed files with 112 additions and 39 deletions

View file

@ -6,6 +6,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/buf"
)

View file

@ -9,6 +9,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/buf"
)

View file

@ -1,6 +1,5 @@
// +build !windows
// +build !wasm
// +build !illumos
//go:build !windows && !wasm && !illumos
// +build !windows,!wasm,!illumos
package buf

View file

@ -1,3 +1,4 @@
//go:build !wasm
// +build !wasm
package buf

View file

@ -1,3 +1,4 @@
//go:build wasm
// +build wasm
package buf

View file

@ -1,3 +1,4 @@
//go:build !wasm
// +build !wasm
package buf_test
@ -9,10 +10,11 @@ import (
"github.com/google/go-cmp/cmp"
"golang.org/x/sync/errgroup"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/testing/servers/tcp"
"golang.org/x/sync/errgroup"
)
func TestReadvReader(t *testing.T) {

View file

@ -1,3 +1,4 @@
//go:build illumos
// +build illumos
package buf