Update readme

This commit is contained in:
xuri 2019-04-23 13:34:24 +08:00
parent 095b5fb62a
commit 29b2854e53
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
2 changed files with 10 additions and 2 deletions

View File

@ -74,7 +74,11 @@ func main() {
return
}
// Get value from cell by given worksheet name and axis.
cell := f.GetCellValue("Sheet1", "B2")
cell, err := f.GetCellValue("Sheet1", "B2")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(cell)
// Get all the rows in the Sheet1.
rows, err := f.GetRows("Sheet1")

View File

@ -73,7 +73,11 @@ func main() {
return
}
// 获取工作表中指定单元格的值
cell := f.GetCellValue("Sheet1", "B2")
cell, err := f.GetCellValue("Sheet1", "B2")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(cell)
// 获取 Sheet1 上所有单元格
rows, err := f.GetRows("Sheet1")