read-docx

module
v0.0.0-...-8243bf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: MIT

README

read-docx

A simple library to read text from a docx file

Go Report Card

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL