mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-05 07:40:24 +08:00
Update README.md: adjust docx parsing logic. (#28)
This commit is contained in:
@@ -117,7 +117,7 @@ func main() {
|
|||||||
fmt.Println("Plain text:")
|
fmt.Println("Plain text:")
|
||||||
for _, it := range doc.Document.Body.Items {
|
for _, it := range doc.Document.Body.Items {
|
||||||
switch it.(type) {
|
switch it.(type) {
|
||||||
case *docx.Paragraph, *docx.WTable: // printable
|
case *docx.Paragraph, *docx.Table: // printable
|
||||||
fmt.Println(it)
|
fmt.Println(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user