diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-03 21:25:19 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-12-03 21:25:19 +0000 |
commit | 1b2223073b36d79a340d0574c6a615586766536a (patch) | |
tree | f4de1016100344d6423e190663093ab812793ec5 | |
parent | 8ac4a42c58f6dfb65ddfaef38d137ab1b2280e41 (diff) |
removing use of colstream variable
-rw-r--r-- | reader/reader.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/reader/reader.go b/reader/reader.go index 22dd003..4d3b0c6 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -107,9 +107,13 @@ func ReadXLSX(ssheet string) FileData { inner := make(SheetData) for rowLidx, row := range sheet.Rows { for colLidx, cell := range row.Cells { + colStr, err := coords.ColIndexToAlpha(colLidx) + if err != nil { + log.Fatal(err) + } ex := ExtractedCell{ Cell: cell, - Col: coords.Colstream[colLidx], + Col: colStr, Row: rowLidx + 1, Value: cell.Value} cellref := fmt.Sprintf("%s%d", ex.Col, ex.Row) |