excel的导出导入
Go to file
lj-wsdj d862973c8d add new 2024-05-22 15:32:09 +08:00
export add new 2024-05-22 15:32:09 +08:00
README.md add new 2024-05-22 15:32:09 +08:00
export1_test.go fix 2024-05-16 16:53:29 +08:00
export2_test.go fix 2024-05-16 16:53:29 +08:00
export3_test.go fix 2024-05-16 16:53:29 +08:00
export4_test.go fix 2024-05-16 16:53:29 +08:00
export5_test.go add new 2024-05-22 15:32:09 +08:00
go.mod first 2024-05-15 15:09:48 +08:00
go.sum first 2024-05-15 15:09:48 +08:00
test.xlsx fix 2024-05-16 16:53:29 +08:00
test2.xlsx fix 2024-05-16 16:53:29 +08:00
test3.xlsx fix 2024-05-16 16:53:29 +08:00
test4.xlsx fix 2024-05-16 16:53:29 +08:00
test5.xlsx add new 2024-05-22 15:32:09 +08:00

README.md

xlsx

excel的导出导入目前仅完成导出

导出功能

如果要使用导出则传入的数据必须为指针类型可以是struct或者元素为struct的slice。

通过tag来确认需要导出的字段内容为export:”x:1,y:1”注意下x,y分别表是该字段在excel表格中的起始位置x为coly为row且tag中的x,y在数据中需要顺序列出,优先y其次x。 当导出的excel表格列数不确定时tag使用export:"loop:true"这样会将所有字段导出到excel表格中。

详情请看测试文件