Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExcel ¶
GenerateExcel 根据data数据结构生成Excel表格 data 是一个用户自定义结构的 slice 需要导出的字段拥有 header tag
type excelData struct { Username string `header:"username"` Sex string `header:"sex"` Age string `header:"age"` }
func GenerateTable ¶
func GenerateTable(slice interface{}) (data [][]string)
GenerateTable 根据用户自定义的 slice 生成表格类型数据
func GinExportExcel ¶
GinExportExcel gin 附件导出中间件,根据 data 生成表格
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.