From 19779b70d881f22e763d40ecf2b3576476136174 Mon Sep 17 00:00:00 2001 From: guoqiang Date: Thu, 19 Dec 2024 16:18:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmain=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/main/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/main/main.go b/cmd/main/main.go index 103cfaa..0d060ef 100644 --- a/cmd/main/main.go +++ b/cmd/main/main.go @@ -30,7 +30,7 @@ import ( "strconv" "strings" - "github.com/fumiama/go-docx" + "github.com/l0g1n/go-docx" ) func main() { @@ -66,11 +66,11 @@ func main() { para1.AddText("italic").Italic().AddTab() para1.AddText("underline").Underline("double").AddTab() para1.AddText("highlight").Highlight("yellow").AddTab() - para1.AddText("font").Font("Consolas", "", "cs").AddTab() + para1.AddText("font").Font("Consolas", "", "", "cs").AddTab() para2 := w.AddParagraph().Justification("end") para2.AddText("test all font attrs"). - Size("44").Color("ff0000").Font("Consolas", "", "cs"). + Size("44").Color("ff0000").Font("Consolas", "", "", "cs"). Shade("clear", "auto", "E7E6E6"). Bold().Italic().Underline("wave"). Highlight("yellow")