Skip to content

Commit 164a3e1

Browse files
Kimxuxuri
authored andcommitted
update README and functions docs (qax-os#351)
* update README and functions docs * update README and functions docs
1 parent 12c1e24 commit 164a3e1

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Excelize is a library written in pure Go and providing a set of functions that a
1717

1818
**WARNING!**
1919

20-
From version 1.5 all row manipulation methods uses Excel row numbering starting with `1` instead of zero-based numbering
21-
which take place in some methods in eraler versions.
20+
From version 1.5.0 all row manipulation methods uses Excel row numbering starting with `1` instead of zero-based numbering
21+
which take place in some methods in eraler versions.
2222

2323
## Basic Usage
2424

README_zh.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
Excelize 是 Go 语言编写的用于操作 Office Excel 文档类库,基于 ECMA-376 Office OpenXML 标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的 XLSX 文档。相比较其他的开源类库,Excelize 支持写入原本带有图片(表)、透视表和切片器等复杂样式的文档,还支持向 Excel 文档中插入图片与图表,并且在保存后不会丢失文档原有样式,可以应用于各类报表系统中。使用本类库要求使用的 Go 语言为 1.8 或更高版本,完整的 API 使用文档请访问 [godoc.org](https://godoc.org/github.com/360EntSecGroup-Skylar/excelize) 或查看 [参考文档](https://xuri.me/excelize/)
1717

18+
**重要提示**
19+
20+
从版本 1.5.0 开始,所有行操作方法都使用从 `1` 开始的 Excel 行编号,早期版本中某些方法中的基于 `0` 的行编号将不再使用。
21+
1822
## 快速上手
1923

2024
### 安装

rows.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (xlsx *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) {
285285
}
286286
}
287287

288-
// SetRowVisible2 provides a function to set visible of a single row by given
288+
// SetRowVisible provides a function to set visible of a single row by given
289289
// worksheet name and Excel row number. For example, hide row 2 in Sheet1:
290290
//
291291
// xlsx.SetRowVisible("Sheet1", 2, false)
@@ -305,10 +305,9 @@ func (f *File) SetRowVisible(sheet string, row int, visible bool) {
305305
xlsx.SheetData.Row[rowIdx].Hidden = true
306306
}
307307

308-
// GetRowVisible2 provides a function to get visible of a single row by given
309-
// worksheet name and Excel row number.
310-
// For example, get visible state of row 2 in
311-
// Sheet1:
308+
// GetRowVisible provides a function to get visible of a single row by given
309+
// worksheet name and Excel row number. For example, get visible state of row
310+
// 2 in Sheet1:
312311
//
313312
// xlsx.GetRowVisible("Sheet1", 2)
314313
//
@@ -376,8 +375,9 @@ func (f *File) RemoveRow(sheet string, row int) {
376375
}
377376
}
378377

379-
// InsertRow2 provides a function to insert a new row after given Excel row number
380-
// starting from 1. For example, create a new row before row 3 in Sheet1:
378+
// InsertRow provides a function to insert a new row after given Excel row
379+
// number starting from 1. For example, create a new row before row 3 in
380+
// Sheet1:
381381
//
382382
// xlsx.InsertRow("Sheet1", 3)
383383
//

0 commit comments

Comments
 (0)