format code, and reorg imports (#991)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user