csv

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCsvFile

func ParseCsvFile(filepath string) (output chan map[string]string, err error)

ParseCsvFile takes the full path to a .csv file and parses it. Each line yielded gets fed to an output channel that is expected to "do stuff" with it. The csv file MUST: * have a header row * be valid csv (consistent number of columns per row) * be newline delimited

func WriteCsvFile

func WriteCsvFile(
	filename string,
	headers []string,
	input <-chan []string,
) (wg *sync.WaitGroup, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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