This is a simple libary to extract text from plaintext, .docx, .odt and .rtf files.
go get -u github.com/lu4p/cat
package main
import (
"fmt"
"github.com/lu4p/cat"
)
func main(){
txt, _ := cat.File("filename")
fmt.Println(txt)
}