瀏覽代碼

reorg imports

kevin 4 年之前
父節點
當前提交
6e3d99e869
共有 3 個文件被更改,包括 3 次插入5 次删除
  1. 1 2
      tools/goctl/rpc/command/command.go
  2. 1 2
      tools/goctl/rpc/ctx/ctx.go
  3. 1 1
      tools/goctl/rpc/gen/genshared.go

+ 1 - 2
tools/goctl/rpc/command/command.go

@@ -1,10 +1,9 @@
 package command
 
 import (
-	"github.com/urfave/cli"
-
 	"github.com/tal-tech/go-zero/tools/goctl/rpc/ctx"
 	"github.com/tal-tech/go-zero/tools/goctl/rpc/gen"
+	"github.com/urfave/cli"
 )
 
 func Rpc(c *cli.Context) error {

+ 1 - 2
tools/goctl/rpc/ctx/ctx.go

@@ -6,12 +6,11 @@ import (
 	"runtime"
 	"strings"
 
-	"github.com/urfave/cli"
-
 	"github.com/tal-tech/go-zero/core/logx"
 	"github.com/tal-tech/go-zero/tools/goctl/util"
 	"github.com/tal-tech/go-zero/tools/goctl/util/console"
 	"github.com/tal-tech/go-zero/tools/goctl/util/stringx"
+	"github.com/urfave/cli"
 )
 
 const (

+ 1 - 1
tools/goctl/rpc/gen/genshared.go

@@ -2,12 +2,12 @@ package gen
 
 import (
 	"fmt"
-	"github.com/tal-tech/go-zero/tools/goctl/rpc/execx"
 	"os"
 	"os/exec"
 	"path/filepath"
 	"strings"
 
+	"github.com/tal-tech/go-zero/tools/goctl/rpc/execx"
 	"github.com/tal-tech/go-zero/tools/goctl/rpc/parser"
 	"github.com/tal-tech/go-zero/tools/goctl/util"
 )