diff options
author | xuri <xuri.me@gmail.com> | 2020-05-27 00:02:29 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-05-27 00:02:29 +0800 |
commit | c168233e70db8f220bd07d9d6d277ae9e2a4a73f (patch) | |
tree | b5bba69c6bc4fc0b2a1429d3893d7a84eff6360b /excelize.go | |
parent | 5c99300ee44de15e92bd8c5a92f2183c804d1379 (diff) |
speedup get cell value from shared string table
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/excelize.go b/excelize.go index 3fd25aa..3e0255a 100644 --- a/excelize.go +++ b/excelize.go @@ -38,6 +38,7 @@ type File struct { Drawings map[string]*xlsxWsDr Path string SharedStrings *xlsxSST + sharedStringsMap map[string]int Sheet map[string]*xlsxWorksheet SheetCount int Styles *xlsxStyleSheet @@ -75,6 +76,7 @@ func newFile() *File { sheetMap: make(map[string]string), Comments: make(map[string]*xlsxComments), Drawings: make(map[string]*xlsxWsDr), + sharedStringsMap: make(map[string]int), Sheet: make(map[string]*xlsxWorksheet), DecodeVMLDrawing: make(map[string]*decodeVmlDrawing), VMLDrawing: make(map[string]*vmlDrawing), |