excelKit

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExcel

func CreateExcel(fileName, sheetName string, headers []string, contents [][]interface{}) (string, error)

CreateExcel 生成excel filePath 文件路径 fileName 文件名 sheetName sheet名 headers 表头 contents 内容 双切片按数据库的行列来理解,第一层切片为数据库单条数据,第二层切片为单条数据中的各个元素; <br/> 例如:[[1,2,3],[4,5,6]] 生成的excel为: <br/> A B C <br/> 1 1 2 3 <br/> 2 4 5 6

Types

This section is empty.

Jump to

Keyboard shortcuts

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