parsers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCSV

func ParseCSV[Key comparable, Value any](r io.Reader, fieldsPerRecord int, rowParser func(row []string) (CSVParsableEntry[Key, Value], error)) (map[Key]Value, error)

Parse csv data provided by a reader

Types

type CSVParsableEntry

type CSVParsableEntry[Key comparable, Value any] interface {
	Key() Key
	Value() Value
}

Each CSVParsableEntry corresponds to a row in a csv file

Jump to

Keyboard shortcuts

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