csv

package
v1.1.39 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 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 Reader added in v1.0.12

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

func NewReader added in v1.0.12

func NewReader(fileName string, skipLine int) (reader *Reader, err error)

func (*Reader) Close added in v1.0.12

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

func (*Reader) Count added in v1.0.12

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

func (*Reader) Read added in v1.0.12

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

type Writer added in v1.0.12

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

func NewWriter added in v1.0.12

func NewWriter(fileName string, logger *zap.Logger) (writer *Writer, err error)

func (*Writer) Close added in v1.0.12

func (writer *Writer) Close() error

func (*Writer) Write added in v1.0.12

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

func (*Writer) WriteAll added in v1.0.12

func (writer *Writer) 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