csv

package
v0.0.0-...-be67b86 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Csv

type Csv struct{}

func (*Csv) Init

func (config *Csv) Init(resolver func(string) string) error

type CsvReader

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

func (*CsvReader) Close

func (r *CsvReader) Close() error

func (*CsvReader) Fields

func (r *CsvReader) Fields() []string

func (*CsvReader) Location

func (r *CsvReader) Location() string

func (*CsvReader) Read

func (r *CsvReader) Read() (commons.Record, error)

type CsvRecord

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

func (CsvRecord) Fields

func (rec CsvRecord) Fields() []string

func (CsvRecord) Get

func (rec CsvRecord) Get(name string) (interface{}, bool)

func (CsvRecord) Set

func (rec CsvRecord) Set(name string, value interface{}) (interface{}, error)

type CsvSource

type CsvSource struct {
	Path       string `json:"path"`
	Comma      string `json:"comma"`
	LazyQuotes bool   `json:"lazyQuotes"`
}

func (*CsvSource) Init

func (c *CsvSource) Init(resolver func(string) string) (err error)

func (*CsvSource) NewReader

func (c *CsvSource) NewReader() (commons.Reader, error)

func (*CsvSource) NewScan

func (source *CsvSource) NewScan(lookup *commons.Lookup) (commons.Scan, error)

type CsvTarget

type CsvTarget struct {
	Path  *string `json:"path"`
	Comma string  `json:"comma"`
}

func (*CsvTarget) GetLabel

func (c *CsvTarget) GetLabel() string

func (*CsvTarget) Init

func (c *CsvTarget) Init(resolver func(string) string) (err error)

func (*CsvTarget) NewFunctionsSupplier

func (c *CsvTarget) NewFunctionsSupplier() eval.Functions

func (*CsvTarget) NewValuesSupplier

func (c *CsvTarget) NewValuesSupplier() eval.Values

func (*CsvTarget) NewWriter

func (target *CsvTarget) NewWriter(fields []string) (commons.Writer, error)

type CsvWriter

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

func (*CsvWriter) Close

func (w *CsvWriter) Close() error

func (*CsvWriter) Fields

func (w *CsvWriter) Fields() []string

func (*CsvWriter) Flush

func (w *CsvWriter) Flush() error

func (*CsvWriter) NewRecord

func (w *CsvWriter) NewRecord() commons.Record

func (*CsvWriter) SetTest

func (w *CsvWriter) SetTest(test bool)

func (*CsvWriter) Write

func (w *CsvWriter) Write(record commons.Record, report commons.Report, context eval.Context) (err error)

Jump to

Keyboard shortcuts

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