csv

package
v0.7.70 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 6 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[E any] struct {
	Context context.Context
	// contains filtered or unexported fields
}

func NewCSVParser

func NewCSVParser[E any](filePath string, lineForColNo int, colToNameMapping map[string]string, predicateFunc func(columns []string, currentRow []string) bool) (*CSV[E], error)

func (*CSV[E]) ExtractCols

func (c *CSV[E]) ExtractCols(lineForColNo int) ([]string, error)

"lineForColNo" line number where the columns are defined in the csv

func (*CSV[E]) Parse

func (c *CSV[E]) Parse(ch chan E, errorChan chan error) error

Jump to

Keyboard shortcuts

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