diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-04-01 13:56:39 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-04-01 13:56:39 +0800 |
commit | 8fd061b98f660f5b67380bda13a5424f3a8164c1 (patch) | |
tree | 4dc8e555f2a95c489c3d8cb912fa0b2952c2422a /excelize.go | |
parent | 330c7a0925353c8458747b309ad94067beae1d34 (diff) |
- Fix SheetCount count error;
- Optimize deserialization operations;
- README updated, add go version required notice
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/excelize.go b/excelize.go index e53d9f0..39adb87 100644 --- a/excelize.go +++ b/excelize.go @@ -13,11 +13,14 @@ import ( // File define a populated XLSX file struct. type File struct { - checked map[string]bool - XLSX map[string]string - Path string - Sheet map[string]*xlsxWorksheet - SheetCount int + checked map[string]bool + ContentTypes *xlsxTypes + Path string + Sheet map[string]*xlsxWorksheet + SheetCount int + WorkBook *xlsxWorkbook + WorkBookRels *xlsxWorkbookRels + XLSX map[string]string } // OpenFile take the name of an XLSX file and returns a populated XLSX file @@ -53,11 +56,10 @@ func OpenReader(r io.Reader) (*File, error) { return nil, err } return &File{ - Sheet: make(map[string]*xlsxWorksheet), checked: make(map[string]bool), - XLSX: file, - Path: "", + Sheet: make(map[string]*xlsxWorksheet), SheetCount: sheetCount, + XLSX: file, }, nil } |