xmlSharedStrings.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Some code of this file reference tealeg/xlsx
  2. package excelize
  3. import (
  4. "encoding/xml"
  5. )
  6. // xlsxSST directly maps the sst element from the namespace
  7. // http://schemas.openxmlformats.org/spreadsheetml/2006/main currently
  8. // I have not checked this for completeness - it does as much as I need.
  9. type xlsxSST struct {
  10. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main sst"`
  11. Count int `xml:"count,attr"`
  12. UniqueCount int `xml:"uniqueCount,attr"`
  13. SI []xlsxSI `xml:"si"`
  14. }
  15. // xlsxSI directly maps the si element from the namespace
  16. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  17. // currently I have not checked this for completeness - it does as
  18. // much as I need.
  19. type xlsxSI struct {
  20. T string `xml:"t"`
  21. R []xlsxR `xml:"r"`
  22. }
  23. // xlsxR directly maps the r element from the namespace
  24. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  25. // currently I have not checked this for completeness - it does as
  26. // much as I need.
  27. type xlsxR struct {
  28. T string `xml:"t"`
  29. }