From f05f799f8d33e24b3bbf6c030c9f22d2829e0748 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 13 Sep 2017 22:00:33 +0800 Subject: - API changed, use worksheet name instead of "sheet" + index, related issue #25, #43, #47, #51, #89, #101, #116 and #120. - go test updated --- col.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'col.go') diff --git a/col.go b/col.go index 56fb6e8..d9c4390 100644 --- a/col.go +++ b/col.go @@ -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") -- cgit v1.2.1