other: 配置导表优化

This commit is contained in:
kercylan98
2023-07-17 16:06:36 +08:00
parent 91b2b52fc8
commit 130869af4e
7 changed files with 113 additions and 49 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ type Exporter struct{}
// ExportStruct 导出结构
func (slf *Exporter) ExportStruct(tmpl Tmpl, tmplStruct ...*TmplStruct) ([]byte, error) {
raw, err := tmpl.Render(tmplStruct)
raw, err := tmpl.Render(tmplStruct...)
if err != nil {
return nil, err
}