utility

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFilePath

func CreateFilePath(filePath string) error

CreateFilePath 创建路径

func DownloadExcel

func DownloadExcel(titleList []string, dataList []interface{}, filename ...string) (string, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL