diff options
author | xuri <xuri.me@gmail.com> | 2020-01-03 23:57:25 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-01-03 23:57:25 +0800 |
commit | 5ca7231ed408ac264f509ff52b5d28ff4fbda757 (patch) | |
tree | af91efcb8b83c75c97cb43c9fac442adccfdcd26 /sheet.go | |
parent | 5f5ec76740704a8362e5a120b4a3582b409a5fdd (diff) |
optimize code and comments: use println errors instead of panic
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -339,12 +339,12 @@ func (f *File) GetSheetIndex(name string) int { // GetSheetMap provides a function to get worksheet name and index map of XLSX. // For example: // -// f, err := excelize.OpenFile("./Book1.xlsx") +// f, err := excelize.OpenFile("Book1.xlsx") // if err != nil { // return // } // for index, name := range f.GetSheetMap() { -// fmt.Println(index, name) +// println(index, name) // } // func (f *File) GetSheetMap() map[int]string { |