mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-23 03:50:36 +08:00
feat: embed template xmls
This commit is contained in:
16
apirun.go
16
apirun.go
@@ -17,19 +17,3 @@ func (r *Run) Size(size int) *Run {
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user