From 8f66e2b8667f1c4deca0f6a145b89b31a70e8ef7 Mon Sep 17 00:00:00 2001 From: shadowmimosa <38422761+shadowmimosa@users.noreply.github.com> Date: Sun, 28 Apr 2024 21:38:36 +0800 Subject: [PATCH] Update README.md: adjust docx parsing logic. (#28) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8448164..b9d1f8e 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ func main() { fmt.Println("Plain text:") for _, it := range doc.Document.Body.Items { switch it.(type) { - case *docx.Paragraph, *docx.WTable: // printable + case *docx.Paragraph, *docx.Table: // printable fmt.Println(it) } }