From 8fd061b98f660f5b67380bda13a5424f3a8164c1 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sat, 1 Apr 2017 13:56:39 +0800 Subject: - Fix SheetCount count error; - Optimize deserialization operations; - README updated, add go version required notice --- excelize.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'excelize.go') 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 } -- cgit v1.2.1