diff options
author | xuri <xuri.me@gmail.com> | 2019-09-16 01:17:35 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-09-16 01:17:35 +0800 |
commit | 8922f659788187afa6d0a5d3248e999c2c1bb846 (patch) | |
tree | 29b2aae2028eaedc448daef08a5670d6f3ca4604 /xmlWorkbook.go | |
parent | a3ee098ab60d9528a0d6b7a7c475ea8ff7ebaba5 (diff) |
Combine functions:
workBookRelsWriter, drawingRelsWriter into relsWriter;
drawingRelsReader, workbookRelsReader, workSheetRelsReader into relsReader;
addDrawingRelationships, addSheetRelationships into addRels
Diffstat (limited to 'xmlWorkbook.go')
-rw-r--r-- | xmlWorkbook.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmlWorkbook.go b/xmlWorkbook.go index 8150e29..765563b 100644 --- a/xmlWorkbook.go +++ b/xmlWorkbook.go @@ -11,14 +11,14 @@ package excelize import "encoding/xml" -// xmlxWorkbookRels contains xmlxWorkbookRelations which maps sheet id and sheet XML. -type xlsxWorkbookRels struct { - XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/relationships Relationships"` - Relationships []xlsxWorkbookRelation `xml:"Relationship"` +// xlsxRelationships describe references from parts to other internal resources in the package or to external resources. +type xlsxRelationships struct { + XMLName xml.Name `xml:"http://schemas.openxmlformats.org/package/2006/relationships Relationships"` + Relationships []xlsxRelationship `xml:"Relationship"` } -// xmlxWorkbookRelation maps sheet id and xl/worksheets/_rels/sheet%d.xml.rels -type xlsxWorkbookRelation struct { +// xlsxRelationship contains relations which maps id and XML. +type xlsxRelationship struct { ID string `xml:"Id,attr"` Target string `xml:",attr"` Type string `xml:",attr"` |