etlcsv

package
v0.0.13-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package etlcsv contains iterators that handle csv data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(it etl.Iter) etl.Iter

Encode consumes a drow.Row iterator and produces []byte

Types

type DecodeOptFunc

type DecodeOptFunc func(*decodeOptions)

func WithDecodeComma

func WithDecodeComma(c rune) DecodeOptFunc

func WithDecodeHeader

func WithDecodeHeader(v bool) DecodeOptFunc

type EncodeOptFunc

type EncodeOptFunc func(*encodeOptions)

func WithEncodeComma

func WithEncodeComma(c rune) EncodeOptFunc

func WithEncodeNoHeader

func WithEncodeNoHeader(v bool) EncodeOptFunc

type Field

type Field = drow.Field

Field is a danda.Field

type Iter

type Iter = etl.Iter

Iter is a iter.Iter

func Decode

func Decode(it Iter, opts ...DecodeOptFunc) Iter

Decode returns an iterator that reads danda.Iter based on []byte and produces danda.Row Close will close the underlying iterator.

type Row

type Row = drow.Row

Row is a danda.Row

Jump to

Keyboard shortcuts

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