mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
fix-lang-must-not-found
This commit is contained in:
parent
3321ed3519
commit
b65fcc5512
@ -3,7 +3,6 @@ package ktgen
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/tal-tech/go-zero/core/lang"
|
|
||||||
"github.com/tal-tech/go-zero/tools/goctl/api/parser"
|
"github.com/tal-tech/go-zero/tools/goctl/api/parser"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
@ -31,7 +30,13 @@ func KtCommand(c *cli.Context) error {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
lang.Must(genBase(dir, pkg, api))
|
e = genBase(dir, pkg, api)
|
||||||
lang.Must(genApi(dir, pkg, api))
|
if e != nil {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
e = genApi(dir, pkg, api)
|
||||||
|
if e != nil {
|
||||||
|
return e
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user