diff options
author | xuri <xuri.me@gmail.com> | 2021-11-17 00:25:36 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-11-17 00:25:36 +0800 |
commit | bc3c7d51a2efe5f0ad85667a8f9636f13941d577 (patch) | |
tree | d8df81412ae201e427c3e43c6aa8638f8e3c247b /sheet.go | |
parent | bda8e7f8129dae0064c47f8e051f76492e1128f5 (diff) |
ref #65: new formula function PRICE
- fix COUPPCD result accuracy issue
- update close spreadsheet example in documentation and README
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -234,7 +234,7 @@ func trimCell(column []xlsxC) []xlsxC { i++ } } - return col[0:i] + return col[:i] } // setContentTypes provides a function to read and update property of contents @@ -452,12 +452,14 @@ func (f *File) GetSheetIndex(name string) int { // if err != nil { // return // } +// defer func() { +// if err := f.Close(); err != nil { +// fmt.Println(err) +// } +// }() // for index, name := range f.GetSheetMap() { // fmt.Println(index, name) // } -// if err = f.Close(); err != nil { -// fmt.Println(err) -// } // func (f *File) GetSheetMap() map[int]string { wb := f.workbookReader() |