Skip to content

Commit 29b2854

Browse files
committed
Update readme
1 parent 095b5fb commit 29b2854

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ func main() {
7474
return
7575
}
7676
// Get value from cell by given worksheet name and axis.
77-
cell := f.GetCellValue("Sheet1", "B2")
77+
cell, err := f.GetCellValue("Sheet1", "B2")
78+
if err != nil {
79+
fmt.Println(err)
80+
return
81+
}
7882
fmt.Println(cell)
7983
// Get all the rows in the Sheet1.
8084
rows, err := f.GetRows("Sheet1")

README_zh.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ func main() {
7373
return
7474
}
7575
// 获取工作表中指定单元格的值
76-
cell := f.GetCellValue("Sheet1", "B2")
76+
cell, err := f.GetCellValue("Sheet1", "B2")
77+
if err != nil {
78+
fmt.Println(err)
79+
return
80+
}
7781
fmt.Println(cell)
7882
// 获取 Sheet1 上所有单元格
7983
rows, err := f.GetRows("Sheet1")

0 commit comments

Comments
 (0)