精简excel导出

This commit is contained in:
xiangheng
2024-04-22 01:24:06 +08:00
parent 4479c60ac4
commit 762a1b1c10
9 changed files with 279 additions and 288 deletions

View File

@@ -39,7 +39,7 @@ func TestExport(t *testing.T) {
}
changeHead := map[string]string{"Id": "账号", "Name": "真实姓名"}
//f, err := excel.NormalExport(testList, "Sheet1", "用户信息", "Id,Email,", true, true, changeHead)
f, err := NormalDynamicExport(testList, "Sheet1", "用户信息", "", true, false, changeHead)
f, err := NormalDynamicExport(testList, "Sheet1", "用户信息", changeHead)
if err != nil {
fmt.Println(err)
return