CsvFileIterator make iterating rows from csv file easier, it reads tuple from csv file and turn it into a `map[string]interface{}` for you. Example CSV format (exported by dbeaver): "id","name","json","created_at" 123,"foobar","{""url"": ""https://example.com""}","2022-05-05 09:56:43.438000000"
| 33 | // "id","name","json","created_at" |
| 34 | // 123,"foobar","{""url"": ""https://example.com""}","2022-05-05 09:56:43.438000000" |
| 35 | type CsvFileIterator struct { |
| 36 | file io.ReadCloser |
| 37 | reader *csv.Reader |
| 38 | fields []string |
| 39 | row []any |
| 40 | } |
| 41 | |
| 42 | type CsvRecord struct { |
| 43 | Key string |
nothing calls this directly
no outgoing calls
no test coverage detected