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 --- table.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'table.go') diff --git a/table.go b/table.go index b274c3b..68e686a 100644 --- a/table.go +++ b/table.go @@ -82,7 +82,7 @@ func (f *File) countTables() int { } // addSheetTable provides function to add tablePart element to -// xl/worksheets/sheet%d.xml by given sheet name and relationship index. +// xl/worksheets/sheet%d.xml by given worksheet name and relationship index. func (f *File) addSheetTable(sheet string, rID int) { xlsx := f.workSheetReader(sheet) table := &xlsxTablePart{ @@ -95,8 +95,8 @@ func (f *File) addSheetTable(sheet string, rID int) { xlsx.TableParts.TableParts = append(xlsx.TableParts.TableParts, table) } -// addTable provides function to add table by given sheet index, coordinate area -// and format set. +// addTable provides function to add table by given worksheet name, coordinate +// area and format set. func (f *File) addTable(sheet, tableXML string, hxAxis, hyAxis, vxAxis, vyAxis, i int, formatSet *formatTable) { // Correct the minimum number of rows, the table at least two lines. if hyAxis == vyAxis { @@ -157,8 +157,8 @@ func parseAutoFilterSet(formatSet string) *formatAutoFilter { } // AutoFilter provides the method to add auto filter in a worksheet by given -// sheet index, coordinate area and settings. An autofilter in Excel is a way of -// filtering a 2D range of data based on some simple criteria. For example +// worksheet name, coordinate area and settings. An autofilter in Excel is a way +// of filtering a 2D range of data based on some simple criteria. For example // applying an autofilter to a cell range A1:D4 in the worksheet 1: // // err = xlsx.AutoFilter("Sheet1", "A1", "D4", "") -- cgit v1.2.1