diff --git a/cmd/hz/generator/template.go b/cmd/hz/generator/template.go index 2c5271ab6..d5eeca5c9 100644 --- a/cmd/hz/generator/template.go +++ b/cmd/hz/generator/template.go @@ -66,7 +66,7 @@ type TemplateGenerator struct { OutputDir string Config *TemplateConfig Excludes []string - tpls map[string]*template.Template // "template name" -> "Template", it used to get the "parsed template" directly + tpls map[string]*template.Template // "template name" -> "Template", it is used get the "parsed template" directly tplsInfo map[string]*Template // "template name" -> "template info", it is used to get the original "template information" dirs map[string]bool isPackageTpl bool