csv2db/csv.go

17 lines
225 B
Go
Raw Normal View History

2022-09-18 12:43:16 +05:00
package main
import (
"fmt"
"os"
)
func processCsvFile(filePath string) error {
f, err := os.Open(opts.FilePath)
if err != nil {
return fmt.Errorf("open file: %v", err)
}
defer f.Close()
return processReader(f)
}