Documentation ¶
Index ¶
- type BadFormatError
- type CsvReader
- func (r *CsvReader) Close(ctx context.Context) error
- func (r *CsvReader) Open(ctx context.Context) error
- func (r *CsvReader) Read(_ context.Context, record any) error
- func (r *CsvReader) WithSkipNonExist(skip bool) *CsvReader
- func (r *CsvReader) WithTransformers(transformers map[string]tfer.FieldTransformer) *CsvReader
- func (r *CsvReader) WithTrimSpace(trim bool) *CsvReader
- type JSONReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadFormatError ¶
func (*BadFormatError) Error ¶
func (e *BadFormatError) Error() string
func (*BadFormatError) Unwrap ¶
func (e *BadFormatError) Unwrap() error
type CsvReader ¶
type CsvReader struct {
// contains filtered or unexported fields
}
func NewCsvReader ¶
func NewCsvReader( logger *slog.Logger, resource batch.ResourceReader, ) *CsvReader
func (*CsvReader) WithSkipNonExist ¶
func (*CsvReader) WithTransformers ¶
func (r *CsvReader) WithTransformers(transformers map[string]tfer.FieldTransformer) *CsvReader
func (*CsvReader) WithTrimSpace ¶
type JSONReader ¶
type JSONReader struct {
// contains filtered or unexported fields
}
func NewJSONReader ¶
func NewJSONReader( logger *slog.Logger, resource batch.ResourceReader, recordExtractor transformer.RecordExtractor, ) *JSONReader
Click to show internal directories.
Click to hide internal directories.