mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-27 06:30:24 +08:00
refactor: Paragraph.Children to []interface{}
This commit is contained in:
@@ -19,7 +19,7 @@ func (p *Paragraph) AddLink(text string, link string) *Hyperlink {
|
||||
},
|
||||
}
|
||||
|
||||
p.Children = append(p.Children, ParagraphChild{Link: hyperlink})
|
||||
p.Children = append(p.Children, hyperlink)
|
||||
|
||||
return hyperlink
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user