package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Sep 22, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ExportExcel(sheetName string, headers []string, rows [][]interface{}) (*excelize.File, error)
ExportExcel 导出Excel文件
sheetName 工作表名称, 注意这里不要取sheet1这种名字,否则导致文件打开时发生部分错误。
headers 列名切片, 表头
rows 数据切片,是一个二维数组
Source Files
¶
Click to show internal directories.
Click to hide internal directories.