module
Version:
v0.0.0-...-8243bf9
Opens a new window with list of versions in this module.
Published: Dec 5, 2021
License: MIT
Opens a new window with license information.
README
¶
read-docx
A simple library to read text from a docx file
url := "https://example/com/document.docx"
doc1 := word.NewDocInUrl(url)
err1 := doc1.Read()
if err1 != nil {
log.Fatal(err1)
}
fmt.Println(doc1.GetContent())
filePath := "test.docx"
doc2 := word.NewDocInFile(filePath)
err2 := doc2.Read()
if err2 != nil {
log.Fatal(err2)
}
fmt.Println(doc2.GetContentText())
Directories
¶
Click to show internal directories.
Click to hide internal directories.