1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00
Files
go-docx/structrel.go
2023-02-23 15:22:56 +08:00

29 lines
709 B
Go

package docxlib
import (
"sync"
)
const (
XMLNS_REL = `http://schemas.openxmlformats.org/package/2006/relationships`
REL_HYPERLINK = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`
REL_IMAGE = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`
REL_TARGETMODE = "External"
)
// Relationships ...
type Relationships struct {
mu sync.RWMutex
Xmlns string `xml:"xmlns,attr"`
Relationship []Relationship
}
// Relationship ...
type Relationship struct {
ID string `xml:"Id,attr"`
Type string `xml:"Type,attr"`
Target string `xml:"Target,attr"`
TargetMode string `xml:"TargetMode,attr,omitempty"`
}