excel

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDataMustBeSlice      = errors.New("data must be a slice")
	ErrSheetIndexOutOfRange = errors.New("sheet index out of range")
	ErrNoDataRowsFound      = errors.New("no data rows found")
	ErrDuplicateColumnName  = errors.New("duplicate column name")
	ErrFieldNotSettable     = errors.New("field is not settable")
)

Functions

func NewExporter

func NewExporter(typ reflect.Type, opts ...ExportOption) tabular.Exporter

func NewExporterFor

func NewExporterFor[T any](opts ...ExportOption) tabular.Exporter

func NewImporter

func NewImporter(typ reflect.Type, opts ...ImportOption) tabular.Importer

func NewImporterFor

func NewImporterFor[T any](opts ...ImportOption) tabular.Importer

Types

type ExportOption

type ExportOption func(*exportOptions)

func WithSheetName

func WithSheetName(name string) ExportOption

type ImportOption

type ImportOption func(*importOptions)

func WithImportSheetIndex

func WithImportSheetIndex(index int) ImportOption

func WithImportSheetName

func WithImportSheetName(name string) ImportOption

func WithSkipRows

func WithSkipRows(rows int) ImportOption

Jump to

Keyboard shortcuts

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