diff options
author | xuri <xuri.me@gmail.com> | 2021-02-15 00:09:35 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-02-15 00:09:35 +0800 |
commit | 36b7990d6ba1036823abf7a01ec8cf74509d4910 (patch) | |
tree | 118e8a9e0db3d071defb497cd98b2fa85595f7b9 /pivotTable.go | |
parent | ca6b1577a7d1508e61e7084ee67ab0dd759b305e (diff) |
lint issue fixed and new formula function: ATAN, AVERAGE, AVERAGEA, CONCAT, CONCATENATE, COUNT, COUNTBLANK, MAX
Diffstat (limited to 'pivotTable.go')
-rw-r--r-- | pivotTable.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pivotTable.go b/pivotTable.go index bffda17..ff21ac1 100644 --- a/pivotTable.go +++ b/pivotTable.go @@ -1,4 +1,4 @@ -// Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of +// Copyright 2016 - 2021 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. // @@ -615,7 +615,7 @@ func (f *File) getPivotTableFieldsSubtotal(fields []PivotTableField) []string { enums := []string{"average", "count", "countNums", "max", "min", "product", "stdDev", "stdDevp", "sum", "var", "varp"} inEnums := func(enums []string, val string) string { for _, enum := range enums { - if strings.ToLower(enum) == strings.ToLower(val) { + if strings.EqualFold(enum, val) { return enum } } |