From 50863294f9d6f2ecc399d06f1b3c2312c4bdce10 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 5 Sep 2016 16:37:15 +0800 Subject: Fix issue #2 change project to object-oriented style and update readme file. --- lib.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib.go') diff --git a/lib.go b/lib.go index 7147424..915bca1 100644 --- a/lib.go +++ b/lib.go @@ -30,17 +30,16 @@ func ReadZipReader(r *zip.Reader) (map[string]string, error) { } // Read XML content as string and replace drawing property in XML namespace of sheet -func readXML(files map[string]string, name string) string { - if content, ok := files[name]; ok { +func (f *File) readXML(name string) string { + if content, ok := f.XLSX[name]; ok { return strings.Replace(content, "