diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-12 12:51:22 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-12 12:52:01 +0000 |
commit | a50c61f4d31cf3cc30222554bd171dbf66603668 (patch) | |
tree | 2fe1e4cb8d223b763d201bbd873031704ca374a3 /reader/reader.go | |
parent | 00351bfbe0b4ff5af723834ba37f2f41214f566e (diff) |
removed superceded func and old TODOs
Diffstat (limited to '')
-rw-r--r-- | reader/reader.go | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/reader/reader.go b/reader/reader.go index 1d0dbf5..7153120 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -120,7 +120,7 @@ func cols(n int) []string { //ReadXLSToMap returns the file's data as a map, // keyed on sheet name. All values are returned as strings. // Paths to a datamap and the spreadsheet file required. -func ReadXLSToMap(dm string, ssheet string) FileData { +func ReadXLS(dm string, ssheet string) FileData { // open the files excelData, err := xlsx.OpenFile(ssheet) @@ -152,25 +152,3 @@ func ReadXLSToMap(dm string, ssheet string) FileData { } return output } - -//ReadXLSX reads an XLSX file -func ReadXLSX(fn string) []ExtractedCell { - var out []ExtractedCell - f, err := xlsx.OpenFile(fn) - if err != nil { - fmt.Printf("Cannot open %s", fn) - } - for _, sheet := range f.Sheets { - 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} - out = append(out, ex) - } - } - } - return out -} |