Versions in this module Expand all Collapse all v0 v0.0.1 Jan 30, 2026 Changes in this version + func WriteErrors(path string, errs []RowError, opts ...Option) error + func WriteErrorsTo(w io.Writer, r io.Reader, errs []RowError, opts ...Option) error + func WriteFile[T any](path string, rows []T, opts ...Option) error + func Write[T any](w io.Writer, rows []T, opts ...Option) error + type GenericRowHandler func(rowIdx, logicalIdx int, obj any, rowErrs []RowError) error + type Option func(*Options) + func ErrCol(idx int) Option + func Header(row int) Option + func OnStreamRow[T any](h RowHandler[T]) Option + func Sheet(name string) Option + func SheetAt(idx int) Option + func StartRow(row int) Option + func UseValidator(v *validator.Validate) Option + type Options struct + ErrorColumnIndex int + FirstDataRow int + GoValidator *validator.Validate + HeaderRow int + RowIndexMapper func(excelRow int, dataIdx int) int + SheetIndex int + SheetName string + type RowError struct + ColIndex int + ColLetter string + Column string + Err error + ExcelRowIndex int + Field string + LogicalIndex int + Value string + func ReadFile[T any](path string, opts ...Option) ([]T, []RowError, error) + func Read[T any](r io.Reader, opts ...Option) ([]T, []RowError, error) + func StreamFile[T any](path string, opts ...Option) ([]RowError, error) + func Stream[T any](r io.Reader, opts ...Option) ([]RowError, error) + type RowHandler func(rowIdx, logicalIdx int, obj *T, rowErrs []RowError) error + type StreamWriter struct + func NewStreamWriterFile[T any](path string, opts ...Option) (*StreamWriter[T], error) + func NewStreamWriter[T any](w io.Writer, opts ...Option) (*StreamWriter[T], error) + func (sw *StreamWriter[T]) Close() error + func (sw *StreamWriter[T]) WriteRow(obj *T) error + func (sw *StreamWriter[T]) WriteRows(objs []T) error