csv

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(opts DecoderOptions) *Decoder

func (*Decoder) Process

func (d *Decoder) Process(ctx context.Context, args selina.ProcessArgs) error

type DecoderOptions

type DecoderOptions struct {
	Header  []string
	Comma   rune
	Comment rune
}

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(opts EncoderOptions) *Encoder

func (*Encoder) Process

func (e *Encoder) Process(ctx context.Context, args selina.ProcessArgs) error

type EncoderOptions

type EncoderOptions struct {
	//Header acts as a filter, if a field is not in header is skipped
	Header []string
	//Comma default ,
	Comma rune
	//UseCRLF use \r\n instead of \n
	UseCRLF bool
}

Jump to

Keyboard shortcuts

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