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 ¶
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 WithCrlf ¶ added in v0.7.0
func WithCrlf() ExportOption
WithCrlf enables Windows-style line endings for compatibility with legacy systems.
func WithExportDelimiter ¶
func WithExportDelimiter(delimiter rune) ExportOption
func WithoutWriteHeader ¶
func WithoutWriteHeader() ExportOption
type ImportOption ¶
type ImportOption func(*importOptions)
func WithComment ¶
func WithComment(comment rune) ImportOption
func WithImportDelimiter ¶
func WithImportDelimiter(delimiter rune) ImportOption
func WithSkipRows ¶
func WithSkipRows(rows int) ImportOption
func WithoutHeader ¶
func WithoutHeader() ImportOption
func WithoutTrimSpace ¶
func WithoutTrimSpace() ImportOption
Click to show internal directories.
Click to hide internal directories.