csv

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVReader

type CSVReader struct {
	FileName string
	// contains filtered or unexported fields
}

func NewCSVReader

func NewCSVReader(fileName string, skipLine int) (reader *CSVReader, err error)

func (*CSVReader) Close

func (reader *CSVReader) Close() (err error)

func (*CSVReader) Count

func (reader *CSVReader) Count() (int, error)

func (*CSVReader) Read

func (reader *CSVReader) Read(ctx context.Context) (record []string, err error)

type CSVWriter

type CSVWriter struct {
	FileName string
	// contains filtered or unexported fields
}

func NewCSVWriter

func NewCSVWriter(fileName string) (writer *CSVWriter, err error)

func (*CSVWriter) Close

func (writer *CSVWriter) Close() error

func (*CSVWriter) Write

func (writer *CSVWriter) Write(ctx context.Context, record []string) (err error)

func (*CSVWriter) WriteAll

func (writer *CSVWriter) WriteAll(ctx context.Context, records [][]string) (err error)

Jump to

Keyboard shortcuts

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