From 087a1aa23b24915a603f43ebb59b9043610c931c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 15 Nov 2019 16:30:56 +0000 Subject: renaming --- reader/reader.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'reader/reader.go') diff --git a/reader/reader.go b/reader/reader.go index 8106bbc..449b8ba 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -129,11 +129,11 @@ func ReadXLSX(ssheet string) FileData { if err != nil { log.Fatal(err) } - o := make(FileData, 1) + outer := make(FileData, 1) // get the data for _, sheet := range data.Sheets { - xdata := make(SheetData) + inner := make(SheetData) for rowLidx, row := range sheet.Rows { for colLidx, cell := range row.Cells { ex := ExtractedCell{ @@ -142,12 +142,12 @@ func ReadXLSX(ssheet string) FileData { Row: rowLidx + 1, Value: cell.Value} cellref := fmt.Sprintf("%s%d", ex.Col, ex.Row) - xdata[cellref] = ex + inner[cellref] = ex } - o[sheet.Name] = xdata + outer[sheet.Name] = inner } } - return o + return outer } //Extract returns the file's data as a map, -- cgit v1.2.3