mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-15 22:10:26 +08:00
House cleaning
This commit is contained in:
24
structrel.go
Normal file
24
structrel.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package docxlib
|
||||
|
||||
import "encoding/xml"
|
||||
|
||||
const (
|
||||
XMLNS = `http://schemas.openxmlformats.org/package/2006/relationships`
|
||||
REL_HYPERLINK = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`
|
||||
|
||||
REL_TARGETMODE = "External"
|
||||
)
|
||||
|
||||
type Relationships struct {
|
||||
XMLName xml.Name `xml:"Relationships"`
|
||||
Xmlns string `xml:"xmlns,attr"`
|
||||
Relationships []*Relationship `xml:"Relationship"`
|
||||
}
|
||||
|
||||
type Relationship struct {
|
||||
XMLName xml.Name `xml:"Relationship"`
|
||||
ID string `xml:"Id,attr"`
|
||||
Type string `xml:"Type,attr"`
|
||||
Target string `xml:"Target,attr"`
|
||||
TargetMode string `xml:"TargetMode,attr,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user