Fetch returns current row as a map
()
| 106 | |
| 107 | // Fetch returns current row as a map |
| 108 | func (ci *CsvFileIterator) Fetch() map[string]any { |
| 109 | row := make(map[string]any) |
| 110 | for index, field := range ci.fields { |
| 111 | row[field] = ci.row[index] |
| 112 | } |
| 113 | return row |
| 114 | } |
| 115 | |
| 116 | // Fetch returns current row as list of pairs (in order) |
| 117 | func (ci *CsvFileIterator) FetchRecords() []*CsvRecord { |
no outgoing calls