summaryrefslogtreecommitdiff
path: root/lib.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 /lib.go
parentaf5c4d00e81b62a3f6ff6cb34a89502400552a2d (diff)
Typo fix, rename exported constants, dependencies modules and copyright update
Rename exported constants `NameSpaceDublinCoreMetadataIntiative` to `NameSpaceDublinCoreMetadataInitiative`
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.go b/lib.go
index 8ec121b..c125da6 100644
--- a/lib.go
+++ b/lib.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.
//
@@ -31,7 +31,7 @@ func (f *File) ReadZipReader(r *zip.Reader) (map[string][]byte, int, error) {
err error
docPart = map[string]string{
"[content_types].xml": defaultXMLPathContentTypes,
- "xl/sharedstrings.xml": dafaultXMLPathSharedStrings,
+ "xl/sharedstrings.xml": defaultXMLPathSharedStrings,
}
fileList = make(map[string][]byte, len(r.File))
worksheets int
@@ -47,7 +47,7 @@ func (f *File) ReadZipReader(r *zip.Reader) (map[string][]byte, int, error) {
if partName, ok := docPart[strings.ToLower(fileName)]; ok {
fileName = partName
}
- if strings.EqualFold(fileName, dafaultXMLPathSharedStrings) && fileSize > f.options.UnzipXMLSizeLimit {
+ if strings.EqualFold(fileName, defaultXMLPathSharedStrings) && fileSize > f.options.UnzipXMLSizeLimit {
if tempFile, err := f.unzipToTemp(v); err == nil {
f.tempFiles.Store(fileName, tempFile)
continue