xlsxlite

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Name  string
	Value string
}

Cell is minimal representation of xlsx's cell

type RowIterator

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

RowIterator for iterating through rows.

func (*RowIterator) Cell

func (ri *RowIterator) Cell(column string) string

Cell return value as string, return empty string if column not found.

func (*RowIterator) Cells

func (ri *RowIterator) Cells() []Cell

Cells returns only all cell that have values

func (*RowIterator) Err

func (ri *RowIterator) Err() error

func (*RowIterator) Index

func (ri *RowIterator) Index() int

Index returns current row's index

func (*RowIterator) Next

func (ri *RowIterator) Next() bool

Next returns whether row has next iteration.

type XlsxLite

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

XlsxLite is a wrapper for any implementation used to process the xlsx file format, designed to be as minimal as possible. In case the underlying library or implementation changes, modifications will only be necessary within this package.

func New

func New(reader *xlsxreader.XlsxFileCloser) *XlsxLite

New creates new XlsxLite

func (*XlsxLite) RowIterator

func (x *XlsxLite) RowIterator(sheet string) *RowIterator

RowIterator returns row's iterator.

func (*XlsxLite) Sheets

func (x *XlsxLite) Sheets() []string

Sheets returns all sheet names.

Jump to

Keyboard shortcuts

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