excelizeutil

package
v2.18.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExcelizeFileCannotBeNil = errors.New("excelize.File cannot be nil")

Functions

func ColumnsTop added in v2.18.5

func ColumnsTop(cols [][]string, trimSpace bool) []string

ColumnsTop converts a response from `excelize.File.GetCols()` to an `[]string` suitable for `Table.Columns`.

func GetCellValue

func GetCellValue(f *excelize.File, sheetName string, colIdx, rowIdx uint, opts ...excelize.Options) (string, error)

func SetRowValues

func SetRowValues(f *excelize.File, sheetName string, rowIndex uint, rowValues []any) error

Types

type File added in v2.15.0

type File struct {
	*excelize.File
}

func NewFile added in v2.15.0

func NewFile(filename string) (*File, error)

func ReadFile added in v2.18.5

func ReadFile(filename string) (*File, error)

func (*File) Close added in v2.15.0

func (f *File) Close() error

func (*File) SheetColumnNames added in v2.16.0

func (f *File) SheetColumnNames(sheetName string, trimSpace bool) ([]string, error)

func (*File) SheetNames added in v2.16.0

func (f *File) SheetNames(sortAsc bool) []string

func (*File) TableData added in v2.15.0

func (f *File) TableData(sheetName string, headerRowCount uint, trimSpace, umerge bool) ([]string, [][]string, error)

func (*File) TableDataIndex added in v2.18.5

func (f *File) TableDataIndex(sheetIdx uint, headerRowCount uint, trimSpace, umerge bool) ([]string, [][]string, error)

Jump to

Keyboard shortcuts

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