csv

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 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

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

func NewReader

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

func (*Reader) Close

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

func (*Reader) Count

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

func (*Reader) Read

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

type Writer

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

func NewWriter

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

func (*Writer) Close

func (writer *Writer) Close() error

func (*Writer) Write

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

func (*Writer) WriteAll

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