From 1b2223073b36d79a340d0574c6a615586766536a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 3 Dec 2019 21:25:19 +0000 Subject: removing use of colstream variable --- reader/reader.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reader/reader.go') 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) -- cgit v1.2.3