summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-02-12 19:03:24 +0800
committerRi Xu <xuri.me@gmail.com>2017-02-12 19:03:24 +0800
commit0833a9d5dab846ed01be52fa59c97ede36ee4a93 (patch)
tree9daaf8583f716a924aeb108b7255808d811f3e8c /lib.go
parent53564cbe57522467a7e0febd0c9ae4374fa90808 (diff)
- Improved performance when reading large files, call Token to read tokens one by one instead Unmarshal. Related issue #20 ;
- Fix go test typo; - Update README
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib.go b/lib.go
index 77c6e23..c3767e3 100644
--- a/lib.go
+++ b/lib.go
@@ -3,7 +3,6 @@ package excelize
import (
"archive/zip"
"bytes"
- "encoding/xml"
"io"
"log"
"math"
@@ -26,11 +25,6 @@ func ReadZipReader(r *zip.Reader) (map[string]string, int, error) {
fileList[v.Name] = readFile(v)
if len(v.Name) > 18 {
if v.Name[0:19] == "xl/worksheets/sheet" {
- var xlsx xlsxWorksheet
- xml.Unmarshal([]byte(fileList[v.Name]), &xlsx)
- xlsx = checkRow(xlsx)
- output, _ := xml.Marshal(xlsx)
- fileList[v.Name] = replaceWorkSheetsRelationshipsNameSpace(string(output))
worksheets++
}
}