1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-12 11:40:28 +08:00

feat: embed template xmls

This commit is contained in:
源文雨
2023-02-09 14:05:31 +08:00
parent 20d91d61a4
commit 2d8e706815
17 changed files with 481 additions and 429 deletions

17
apitext.go Normal file
View File

@@ -0,0 +1,17 @@
package docxlib
// AddText adds text to paragraph
func (p *Paragraph) AddText(text string) *Run {
t := &Text{
Text: text,
}
run := &Run{
Text: t,
RunProperties: &RunProperties{},
}
p.Children = append(p.Children, ParagraphChild{Run: run})
return run
}