office

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCellID

func MakeCellID(col, row int) string

func MakeColID added in v0.0.2

func MakeColID(col int) string

func ParseCellID

func ParseCellID(cell string) (col, row int)

Types

type Excel

type Excel struct {
	// contains filtered or unexported fields
}

func OpenExcel

func OpenExcel(filename string, password *string) (*Excel, error)

func (*Excel) Get

func (xls *Excel) Get(sheetName string, start, end *string) ([][]any, error)

func (*Excel) GetData

func (xls *Excel) GetData(sheetName string, start, end *string) ([]map[string]any, error)

func (*Excel) GetSheetName added in v0.0.2

func (xls *Excel) GetSheetName(sheetName string) string

func (*Excel) MakeStyle added in v0.0.2

func (xls *Excel) MakeStyle(style excelize.Style) (int, error)

func (*Excel) RemoveSheet added in v0.0.2

func (xls *Excel) RemoveSheet(sheetName string) error

func (*Excel) Save

func (xls *Excel) Save(filename, password *string) error

func (*Excel) Set

func (xls *Excel) Set(sheetName string, table [][]any, start, end *string) error

func (*Excel) SetAutoFilter added in v0.0.2

func (xls *Excel) SetAutoFilter(sheetName string, start, end string, option *[]excelize.AutoFilterOptions) error

func (*Excel) SetCellStyle added in v0.0.2

func (xls *Excel) SetCellStyle(sheetName string, start string, end string, styleID int) error

func (*Excel) SetColWidth added in v0.0.2

func (xls *Excel) SetColWidth(sheetName string, startCol string, endCol string, width float64) error

func (*Excel) SetColWidths added in v0.0.2

func (xls *Excel) SetColWidths(sheetName string, widths []float64) error

func (*Excel) SetData

func (xls *Excel) SetData(sheetName string, data []map[string]any, start, end *string) error

func (*Excel) SetPanes added in v0.0.2

func (xls *Excel) SetPanes(sheetName string, panes excelize.Panes) error

func (*Excel) Sheets

func (xls *Excel) Sheets() []string

func (*Excel) WriteToBuffer added in v0.0.2

func (xls *Excel) WriteToBuffer() ([]byte, error)

Jump to

Keyboard shortcuts

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