Documentation ¶
Index ¶
- func AddMultiLineContent(parent xml.Node, content string) error
- func ConcatTextNodes(textNodes []xml.Node) string
- func FillCell(cell xml.Node, content string) error
- func FillParagraph(paragraph xml.Node, content string) (err error)
- func GenerateXML(wordDoc *docx.Docx) (xmlDoc *xml.XmlDocument, err error)
- func ParseXML(content []byte) (xmlDoc *xml.XmlDocument, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMultiLineContent ¶
AddMultiLineContent adds the given content into the provided docx XML node as multiple "paragraphs" of text, split by the newlines.
func ConcatTextNodes ¶
ConcatTextNodes will concatenate the text from an array of text nodes and trim any whitespace from the final result.
func FillParagraph ¶
FillParagraph inserts the given content into the provided docx XML paragraph node. Note that newlines aren't respected - you'll need to create a new paragraph node for each.
func GenerateXML ¶
func GenerateXML(wordDoc *docx.Docx) (xmlDoc *xml.XmlDocument, err error)
GenerateXML gives the underlying XML document for the provided Word document.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.