diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-15 16:29:48 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-15 16:29:48 +0000 |
commit | bdf0f3b5b699bfc6f603cf8c5ea1886b2870bd1e (patch) | |
tree | e39f3f4692ea7850bc4309ab57a7b9e991b6f78b /reader/reader.go | |
parent | c649bb324055dc902fe5ce27969185a566946120 (diff) |
renaming
Diffstat (limited to 'reader/reader.go')
-rw-r--r-- | reader/reader.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/reader/reader.go b/reader/reader.go index b29a3fa..8106bbc 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -37,10 +37,10 @@ type DatamapLine struct { //ExtractedCell is data pulled from a cell. type ExtractedCell struct { - Cell *xlsx.Cell - ColL string - RowLidx int - Value string + Cell *xlsx.Cell + Col string + Row int + Value string } //sheetInSlice is a helper which returns true @@ -137,11 +137,11 @@ func ReadXLSX(ssheet string) FileData { for rowLidx, row := range sheet.Rows { for colLidx, cell := range row.Cells { ex := ExtractedCell{ - Cell: cell, - ColL: colstream[colLidx], - RowLidx: rowLidx + 1, - Value: cell.Value} - cellref := fmt.Sprintf("%s%d", ex.ColL, ex.RowLidx) + Cell: cell, + Col: colstream[colLidx], + Row: rowLidx + 1, + Value: cell.Value} + cellref := fmt.Sprintf("%s%d", ex.Col, ex.Row) xdata[cellref] = ex } o[sheet.Name] = xdata |