summaryrefslogtreecommitdiff
path: root/pivotTable.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-01-09 00:20:42 +0800
committerxuri <xuri.me@gmail.com>2022-01-09 00:20:42 +0800
commit2245fccca0beb25a1bf309a1c9cbd273512f125a (patch)
tree737ced5abd6cf452662268cf1ae2b76edf8ed03c /pivotTable.go
parentaf5c4d00e81b62a3f6ff6cb34a89502400552a2d (diff)
Typo fix, rename exported constants, dependencies modules and copyright update
Rename exported constants `NameSpaceDublinCoreMetadataIntiative` to `NameSpaceDublinCoreMetadataInitiative`
Diffstat (limited to 'pivotTable.go')
-rw-r--r--pivotTable.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pivotTable.go b/pivotTable.go
index 270ee99..d30eeb1 100644
--- a/pivotTable.go
+++ b/pivotTable.go
@@ -1,4 +1,4 @@
-// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of
+// Copyright 2016 - 2022 The excelize Authors. All rights reserved. Use of
// this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
@@ -265,8 +265,8 @@ func (f *File) addPivotCache(pivotCacheID int, pivotCacheXML string, opt *PivotT
}
// data range has been checked
order, _ := f.getPivotFieldsOrder(opt)
- hcell, _ := CoordinatesToCellName(coordinates[0], coordinates[1])
- vcell, _ := CoordinatesToCellName(coordinates[2], coordinates[3])
+ hCell, _ := CoordinatesToCellName(coordinates[0], coordinates[1])
+ vCell, _ := CoordinatesToCellName(coordinates[2], coordinates[3])
pc := xlsxPivotCacheDefinition{
SaveData: false,
RefreshOnLoad: true,
@@ -276,7 +276,7 @@ func (f *File) addPivotCache(pivotCacheID int, pivotCacheXML string, opt *PivotT
CacheSource: &xlsxCacheSource{
Type: "worksheet",
WorksheetSource: &xlsxWorksheetSource{
- Ref: hcell + ":" + vcell,
+ Ref: hCell + ":" + vCell,
Sheet: dataSheet,
},
},
@@ -320,8 +320,8 @@ func (f *File) addPivotTable(cacheID, pivotTableID int, pivotTableXML string, op
return fmt.Errorf("parameter 'PivotTableRange' parsing error: %s", err.Error())
}
- hcell, _ := CoordinatesToCellName(coordinates[0], coordinates[1])
- vcell, _ := CoordinatesToCellName(coordinates[2], coordinates[3])
+ hCell, _ := CoordinatesToCellName(coordinates[0], coordinates[1])
+ vCell, _ := CoordinatesToCellName(coordinates[2], coordinates[3])
pivotTableStyle := func() string {
if opt.PivotTableStyleName == "" {
@@ -345,7 +345,7 @@ func (f *File) addPivotTable(cacheID, pivotTableID int, pivotTableXML string, op
ShowError: &opt.ShowError,
DataCaption: "Values",
Location: &xlsxLocation{
- Ref: hcell + ":" + vcell,
+ Ref: hCell + ":" + vCell,
FirstDataCol: 1,
FirstDataRow: 1,
FirstHeaderRow: 1,
@@ -509,7 +509,7 @@ func (f *File) addPivotColFields(pt *xlsxPivotTableDefinition, opt *PivotTableOp
})
}
- //in order to create pivot in case there is many Columns and Many Datas
+ // in order to create pivot in case there is many Columns and Data
if len(opt.Data) > 1 {
pt.ColFields.Field = append(pt.ColFields.Field, &xlsxField{
X: -2,