|
|
||
|---|---|---|
| export | ||
| README.md | ||
| export1_test.go | ||
| export2_test.go | ||
| export3_test.go | ||
| export4_test.go | ||
| go.mod | ||
| go.sum | ||
| test.xlsx | ||
| test2.xlsx | ||
| test3.xlsx | ||
| test4.xlsx | ||
README.md
xlsx
excel的导出导入(目前仅完成导出)
导出功能
如果要使用导出,则传入的数据必须为指针,类型可以是struct或者元素为struct的slice。
通过tag来确认需要导出的字段,内容为export:”x:1,y:1”,注意下x,y分别表是该字段在excel表格中的起始位置x为col,y为row,且tag中的x在数据中需要顺序列出。
详情请看测试文件