修复 多处基础错误 现在可以直接使用gf run .\main.go 运行程序

This commit is contained in:
联盟少侠
2025-07-09 13:16:46 +08:00
parent 6fcfa61dff
commit d79138d278
48 changed files with 1368 additions and 934 deletions

View File

@@ -26,7 +26,17 @@ var (
// 单元格表头
char = []string{"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
// 默认行样式
defaultRowStyle = `{"font":{"color":"#666666","size":13,"family":"arial"},"alignment":{"vertical":"center","horizontal":"center"}}`
defaultRowStyle = &excelize.Style{
Font: &excelize.Font{
Color: "#666666",
Size: 13,
Family: "Arial",
},
Alignment: &excelize.Alignment{
Horizontal: "center",
Vertical: "center",
},
}
)
// ExportByStructs 导出切片结构体到excel表格