xlsx/README.md

12 lines
571 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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表格中。
详情请看测试文件