aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-11-15 16:30:56 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-11-15 16:30:56 +0000
commit087a1aa23b24915a603f43ebb59b9043610c931c (patch)
treeaf64d92a6fd5386494f31010e5a7ca87c6fb2bc4
parentbdf0f3b5b699bfc6f603cf8c5ea1886b2870bd1e (diff)
renaming
-rw-r--r--reader/reader.go10
1 files changed, 5 insertions, 5 deletions
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,