excel

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSheetData added in v0.12.2

func WithSheetData(data [][]string) sheetOption

func WithSheetHead added in v0.12.2

func WithSheetHead(head []string) sheetOption

func WithSheetHeadWidth

func WithSheetHeadWidth(hw []int) sheetOption

Types

type Sheet added in v0.12.1

type Sheet struct {
	Name      string     // 工作表名称
	Head      []string   // 表头
	HeadWidth []int      // 表头宽度
	Data      [][]string // 数据
}

func NewSheet added in v0.12.2

func NewSheet(name string, opts ...sheetOption) *Sheet

type Write

type Write struct {
	Filepath string // 文件路径
	// contains filtered or unexported fields
}

func NewExcel

func NewExcel(filepath string, opts ...writeOption) *Write

func (*Write) AddSheet added in v0.12.2

func (w *Write) AddSheet(s *Sheet) *Write

func (*Write) DelSheet1

func (w *Write) DelSheet1() *Write

func (*Write) Save

func (w *Write) Save() error

Jump to

Keyboard shortcuts

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