excel

package
v0.0.0-...-65eaace Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SheetName = "Sheet1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Excel

type Excel struct {
	Filepath string
	ColNames []string
	Rows     [][]any
	// contains filtered or unexported fields
}

func NewSingleSheetExcel

func NewSingleSheetExcel(filePath string) (*Excel, error)

func (*Excel) AddCellsRow

func (e *Excel) AddCellsRow(row []excelize.Cell)

func (*Excel) AddStrsRow

func (e *Excel) AddStrsRow(row []string)

func (*Excel) HeadInsertCellsRow

func (e *Excel) HeadInsertCellsRow(row []excelize.Cell)

func (*Excel) Save

func (e *Excel) Save() error

func (*Excel) SetHead

func (e *Excel) SetHead(colNames []string)

SetHead do set when first call

Jump to

Keyboard shortcuts

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