Documentation
¶
Index ¶
- func CreateFilePath(filePath string) error
- func DownloadExcel(titleList []string, dataList []interface{}, filename ...string) (string, error)
- func ReadExcelFile(file *ghttp.UploadFile, tableName ...string) (rows [][]string, err error)
- func ToExcel(dataList []interface{}) (content io.ReadSeeker)
- func ToMultiSheetExcel(data map[string][]any) (content io.ReadSeeker)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadExcel ¶
func ReadExcelFile ¶
func ReadExcelFile(file *ghttp.UploadFile, tableName ...string) (rows [][]string, err error)
ReadExcelFile 读取EXCEL文件
func ToExcel ¶
func ToExcel(dataList []interface{}) (content io.ReadSeeker)
ToExcel 生成io.ReadSeeker 参数 titleList 为Excel表头,dataList 为数据
func ToMultiSheetExcel ¶
func ToMultiSheetExcel(data map[string][]any) (content io.ReadSeeker)
ToMultiSheetExcel 生成io.ReadSeeker 参数 titleList 为Excel表头,dataList 为数据,data 键为sheet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.