mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
use goctl template to generate all kinds of templates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package gogen
|
||||
|
||||
import (
|
||||
"github.com/tal-tech/go-zero/tools/goctl/templatex"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/util"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@@ -25,5 +25,5 @@ var templates = map[string]string{
|
||||
}
|
||||
|
||||
func GenTemplates(_ *cli.Context) error {
|
||||
return templatex.InitTemplates(category, templates)
|
||||
return util.InitTemplates(category, templates)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user