Documentation
¶
Index ¶
Constants ¶
View Source
const ( XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main` XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships` XMLNS_WP = `http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing` XMLNS_WPS = `http://schemas.microsoft.com/office/word/2010/wordprocessingShape` XMLNS_WPC = `http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas` XMLNS_WPG = `http://schemas.microsoft.com/office/word/2010/wordprocessingGroup` 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" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
XMLName xml.Name `xml:"w:document"`
XmlW string `xml:"xmlns:w,attr"` // cannot be unmarshalled in
XmlR string `xml:"xmlns:r,attr,omitempty"` // cannot be unmarshalled in
XmlWp string `xml:"xmlns:wp,attr,omitempty"` // cannot be unmarshalled in
XmlWps string `xml:"xmlns:wps,attr,omitempty"` // cannot be unmarshalled in
XmlWpc string `xml:"xmlns:wpc,attr,omitempty"` // cannot be unmarshalled in
XmlWpg string `xml:"xmlns:wpg,attr,omitempty"` // cannot be unmarshalled in
Body Body `xml:"w:body"`
}
Document docx对象
type 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"`
}
Relationship ...
type Relationships ¶
type Relationships struct {
Xmlns string `xml:"xmlns,attr"`
Relationship []Relationship
}
Relationships ...
Click to show internal directories.
Click to hide internal directories.