diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-09-13 22:00:33 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-09-13 22:00:33 +0800 |
commit | f05f799f8d33e24b3bbf6c030c9f22d2829e0748 (patch) | |
tree | dff6b11b838c5ee26ea8c0fcf1af26bba8355702 /col.go | |
parent | 3e7192b6abaa9c8db29a2e34867879ebc9fedca7 (diff) |
- API changed, use worksheet name instead of "sheet" + index, related issue #25, #43, #47, #51, #89, #101, #116 and #120.
- go test updated
Diffstat (limited to 'col.go')
-rw-r--r-- | col.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -225,7 +225,7 @@ func (f *File) getColWidth(sheet string, col int) int { return int(defaultColWidthPixels) } -// GetColWidth provides function to get column width by given sheet name and +// GetColWidth provides function to get column width by given worksheet name and // column index. func (f *File) GetColWidth(sheet, column string) float64 { col := TitleToNumber(strings.ToUpper(column)) + 1 @@ -255,7 +255,7 @@ func (f *File) InsertCol(sheet, column string) { f.adjustHelper(sheet, col, -1, 1) } -// RemoveCol provides function to remove single column by given worksheet index +// RemoveCol provides function to remove single column by given worksheet name // and column index. For example, remove column C in Sheet1: // // xlsx.RemoveCol("Sheet1", "C") |