1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

Update README.md: adjust docx parsing logic. (#28)

This commit is contained in:
shadowmimosa
2024-04-28 21:38:36 +08:00
committed by GitHub
parent 23dde4f745
commit 8f66e2b866

View File

@@ -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)
}
}