1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-10 02:00:24 +08:00

普适化 template

This commit is contained in:
源文雨
2023-02-21 13:14:21 +08:00
parent 092b86e7f4
commit 585ee6cda8
13 changed files with 51 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ func init() {
func main() {
fmt.Printf("Preparing new document to write at %s\n", *fileLocation)
w := docxlib.New()
w := docxlib.NewA4()
// add new paragraph
para1 := w.AddParagraph()
// add text