Documentation ¶
Index ¶
- Constants
- Variables
- func ColumnsTop(cols [][]string, trimSpace bool) []string
- func GetCellValue(f *excelize.File, sheetName string, colIdx, rowIdx uint, ...) (string, error)
- func SetRowValues(f *excelize.File, sheetName string, rowIndex uint, rowValues []any) error
- func StyleBackgroundColorSimple(hexRGBs []string) (*excelize.Style, error)
- type File
- func (f *File) Close() error
- func (f *File) SheetColumnNames(sheetName string, trimSpace bool) ([]string, error)
- func (f *File) SheetNames(sortAsc bool) []string
- func (f *File) TableData(sheetName string, headerRowCount uint, trimSpace, umerge bool) ([]string, [][]string, error)
- func (f *File) TableDataIndex(sheetIdx uint, headerRowCount uint, trimSpace, umerge bool) ([]string, [][]string, error)
Constants ¶
View Source
const ( TypePattern = "pattern" StyleBackgroundColorFormat = `{"fill":{"type":"pattern","color":["%s"],"pattern":1}}` )
Variables ¶
View Source
var ErrExcelizeFileCannotBeNil = errors.New("excelize.File cannot be nil")
Functions ¶
func ColumnsTop ¶ added in v2.18.5
ColumnsTop converts a response from `excelize.File.GetCols()` to an `[]string` suitable for `Table.Columns`.
func GetCellValue ¶
func SetRowValues ¶
Types ¶
type File ¶ added in v2.15.0
func (*File) SheetColumnNames ¶ added in v2.16.0
func (*File) SheetNames ¶ added in v2.16.0
Click to show internal directories.
Click to hide internal directories.