office

package
v0.0.0-...-9c17c29 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExcel

func CreateExcel(es *ExcelSpec) error

func CreateMultiSheetExcel

func CreateMultiSheetExcel(es *MultiExcelSpec) error

Types

type ExcelSpec

type ExcelSpec struct {
	FileName  string          // 文件名称
	SheetName string          // Sheet名称
	Titles    []string        // 每列的标题
	Data      [][]interface{} // 每行数据
}

type MultiExcelSpec

type MultiExcelSpec struct {
	FileName string
	Sheets   []*Sheet
}

type Sheet

type Sheet struct {
	SheetName string
	Titles    []string        // 每列的标题
	Data      [][]interface{} // 每行数据
}

Jump to

Keyboard shortcuts

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