services

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCsvHeader

func GetCsvHeader(scanner *bufio.Scanner, comma rune) map[int]string

GetCsvHeader reads and normalizes the first CSV record. It is retained for compatibility; ValidatePhone uses encoding/csv directly so multiline fields and read errors are handled correctly.

func ProcessNumber

func ProcessNumber(jobs <-chan []byte, results chan<- map[string]string, wg *sync.WaitGroup, columns map[int]string, phoneKey string, comma rune)

ProcessNumber enriches legacy line-oriented jobs. New code should prefer ValidatePhone, which handles quoted multiline CSV records and ordered output.

func ValidatePhone

func ValidatePhone(csvFile, out, phoneKey string, comma, outputComma rune) error

ValidatePhone streams csvFile, enriches each row in parallel, and writes results in input order. Existing output files are truncated at open, and all CSV read/write errors are returned to the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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