summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-01-03 23:57:25 +0800
committerxuri <xuri.me@gmail.com>2020-01-03 23:57:25 +0800
commit5ca7231ed408ac264f509ff52b5d28ff4fbda757 (patch)
treeaf91efcb8b83c75c97cb43c9fac442adccfdcd26 /sheet.go
parent5f5ec76740704a8362e5a120b4a3582b409a5fdd (diff)
optimize code and comments: use println errors instead of panic
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sheet.go b/sheet.go
index 2654b8f..19b90c6 100644
--- a/sheet.go
+++ b/sheet.go
@@ -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 {