From 8402c813de8b95c15683f8a8d32410b267fe65f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:10:02 +0800 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0054872..a9f9219 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,16 @@ go run cmd/main/main.go -u ``` And you will see two files generated under `pwd` with the same contents as below. - -
-p1 -p2 -
+ + + + + + + + + +
p1p2
## Use Package in your Project ```bash @@ -64,11 +69,11 @@ func main() { w := docx.NewA4() // add new paragraph para1 := w.AddParagraph() - // add text + // add text para1.AddText("test").AddTab() - para1.AddText("size").Size("44").AddTab() - f, err := os.Create("generated.docx") - // save to file + para1.AddText("size").Size("44").AddTab() + f, err := os.Create("generated.docx") + // save to file if err != nil { panic(err) }