Documentation
¶
Index ¶
- func BuildHeaderIndex(headers []string) map[string]int
- func DetectDelimiter(content string) rune
- func Field(record []string, index map[string]int, names ...string) string
- func HasAnyHeader(index map[string]int, names ...string) bool
- func IsEmptyRecord(record []string) bool
- func NormalizeHeader(header string) string
- type Format
- type ParsedCSV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHeaderIndex ¶
BuildHeaderIndex returns a lookup map using normalized header labels.
func DetectDelimiter ¶
DetectDelimiter chooses comma, semicolon, or tab from the header line.
func HasAnyHeader ¶
HasAnyHeader reports whether any alias exists in the parsed header.
func IsEmptyRecord ¶
IsEmptyRecord reports whether a CSV record contains only blank fields.
func NormalizeHeader ¶
NormalizeHeader makes bank-export headers comparable across languages.
Types ¶
Click to show internal directories.
Click to hide internal directories.