mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 10:20:00 +08:00
feat: support goctl --module to set go module (#5135)
This commit is contained in:
@@ -27,6 +27,8 @@ var (
|
||||
VarStringBranch string
|
||||
// VarStringStyle describes the style of output files.
|
||||
VarStringStyle string
|
||||
// VarStringModule describes the module name for go.mod.
|
||||
VarStringModule string
|
||||
)
|
||||
|
||||
// CreateServiceCommand fast create service
|
||||
@@ -83,6 +85,6 @@ func CreateServiceCommand(_ *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = gogen.DoGenProject(apiFilePath, abs, VarStringStyle, false)
|
||||
err = gogen.DoGenProjectWithModule(apiFilePath, abs, VarStringModule, VarStringStyle, false)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user