mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-10 11:13:44 +08:00
修复 多处基础错误 现在可以直接使用gf run .\main.go 运行程序
This commit is contained in:
@@ -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表格
|
||||
|
||||
Reference in New Issue
Block a user