go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

how to get current module name in customized api template?

Open regboy8 opened this issue 1 year ago • 2 comments

如在handler.tpl中 `package {{.PkgName}}

import ( "net/http" "{{当前项目名}}/pkg/utils" // 导入自定义工具包 {{.ImportPackages}} ) ` 谢谢

regboy8 avatar Jun 08 '23 04:06 regboy8