parse

package
v0.0.0-...-c914e5a Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCsvWithHeader

func ReadCsvWithHeader(r io.Reader, rowParser CsvRowParser) (rows []interface{}, err error)

ReadCsvWithHeader parses lines of a CSV file that has a header

func ReadCsvWithoutHeader

func ReadCsvWithoutHeader(r io.Reader, rowParser CsvRowParser) (rows []interface{}, err error)

ReadCsvWithoutHeader parses lines of a CSV file that does not have a header

Types

type CsvRowParser

type CsvRowParser func([]string) (interface{}, error)

CsvRowParser is a function that parses a row of a CSV

Jump to

Keyboard shortcuts

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