csvparser

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 3 Imported by: 0

README

csv-parser

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvParser

type CsvParser struct {
	// contains filtered or unexported fields
}

func (*CsvParser) FieldCount added in v0.1.4

func (p *CsvParser) FieldCount() int

func (*CsvParser) Initialize

func (p *CsvParser) Initialize(delimiters string, mergeDelimiters bool, enclosers []string, lineFormat string, ignore string) error

* delimiters: string with all delimiter chars * mergeDelimiters: if true, all successive delimiters are considered as one * enclosers: array of string, each string contains a enclorser tuple: "", [], {}... * lineFormat: format of the line (each fieldname or ignore)

func (*CsvParser) Parse

func (p *CsvParser) Parse(line string) (map[string]string, error)

* si pas dans la lecture d'un champ

type ParserState added in v0.0.10

type ParserState struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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