cat icon indicating copy to clipboard operation
cat copied to clipboard

Extract text from plaintext, .docx, .odt and .rtf files. Pure go.

GoDoc License CircleCI Go Report Card codecov

cat

This is a simple libary to extract text from plaintext, .docx, .odt and .rtf files.

Install

go get -u github.com/lu4p/cat

Basic Usage

package main
import (
  "fmt"
  "github.com/lu4p/cat"
)

func main(){
  txt, _ := cat.File("filename")
  fmt.Println(txt)
}