1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-16 23:00:38 +08:00

First commit

This commit is contained in:
Gonzalo Fernandez-Victorio
2021-04-23 16:58:31 +01:00
parent bd1f5d3e9b
commit eae5f90385
16 changed files with 957 additions and 0 deletions

24
relationship.go Normal file
View 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"`
}