Documentation
¶
Index ¶
- Variables
- func NewExporter(typ reflect.Type, opts ...ExportOption) tabular.Exporter
- func NewExporterFor[T any](opts ...ExportOption) tabular.Exporter
- func NewImporter(typ reflect.Type, opts ...ImportOption) tabular.Importer
- func NewImporterFor[T any](opts ...ImportOption) tabular.Importer
- type ExportOption
- type ImportOption
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
Click to show internal directories.
Click to hide internal directories.