From 0325d8e92df919137fc5c27889d29e6b1d33df03 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sat, 4 Sep 2021 10:08:49 +0800 Subject: [PATCH] format code, and reorg imports (#991) --- tools/goctl/util/ctx/gomod.go | 2 +- tools/goctl/util/path_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/goctl/util/ctx/gomod.go b/tools/goctl/util/ctx/gomod.go index 17b474c9..52b9563f 100644 --- a/tools/goctl/util/ctx/gomod.go +++ b/tools/goctl/util/ctx/gomod.go @@ -2,12 +2,12 @@ package ctx import ( "errors" - "github.com/tal-tech/go-zero/tools/goctl/util" "os" "path/filepath" "github.com/tal-tech/go-zero/core/jsonx" "github.com/tal-tech/go-zero/tools/goctl/rpc/execx" + "github.com/tal-tech/go-zero/tools/goctl/util" ) // Module contains the relative data of go module, diff --git a/tools/goctl/util/path_test.go b/tools/goctl/util/path_test.go index e5111bfd..55c7be1c 100644 --- a/tools/goctl/util/path_test.go +++ b/tools/goctl/util/path_test.go @@ -1,11 +1,12 @@ package util import ( - "github.com/stretchr/testify/assert" "io/ioutil" "os" "path/filepath" "testing" + + "github.com/stretchr/testify/assert" ) func TestReadLink(t *testing.T) { @@ -28,7 +29,6 @@ func TestReadLink(t *testing.T) { assert.Nil(t, err) assert.Equal(t, pwd, ret) }) - } func assertError(err error, t *testing.T) {