summaryrefslogtreecommitdiff
path: root/xmlSharedStrings.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-08-30 21:54:28 +0800
committerRi Xu <xuri.me@gmail.com>2016-08-30 21:54:28 +0800
commit3c4ad28db75108dfd974b994df26ec7f33a69be7 (patch)
tree9f3f03683574b4e756b8467556ab2004f266b159 /xmlSharedStrings.go
parent0d60020f9678c80df75d180cc874a24d80b1db08 (diff)
- Get cell value support
- Optimisation code use fmt package - Update README - Remove useless function
Diffstat (limited to 'xmlSharedStrings.go')
-rw-r--r--xmlSharedStrings.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmlSharedStrings.go b/xmlSharedStrings.go
new file mode 100644
index 0000000..22401f0
--- /dev/null
+++ b/xmlSharedStrings.go
@@ -0,0 +1,32 @@
+package excelize
+
+import (
+ "encoding/xml"
+)
+
+// xlsxSST directly maps the sst element from the namespace
+// http://schemas.openxmlformats.org/spreadsheetml/2006/main currently
+// I have not checked this for completeness - it does as much as I need.
+type xlsxSST struct {
+ XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main sst"`
+ Count int `xml:"count,attr"`
+ UniqueCount int `xml:"uniqueCount,attr"`
+ SI []xlsxSI `xml:"si"`
+}
+
+// xlsxSI directly maps the si element from the namespace
+// http://schemas.openxmlformats.org/spreadsheetml/2006/main -
+// currently I have not checked this for completeness - it does as
+// much as I need.
+type xlsxSI struct {
+ T string `xml:"t"`
+ R []xlsxR `xml:"r"`
+}
+
+// xlsxR directly maps the r element from the namespace
+// http://schemas.openxmlformats.org/spreadsheetml/2006/main -
+// currently I have not checked this for completeness - it does as
+// much as I need.
+type xlsxR struct {
+ T string `xml:"t"`
+}