Skip to content

Commit

Permalink
Update cat.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lu4p authored Nov 3, 2019
1 parent 0c1fae5 commit b391e90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/lu4p/cat/rtftxt"
)

var test string

// File reads a .odt, .docx, .rtf or plaintext file and returns the content as a string
func File(filename string) (string, error) {
content, err := ioutil.ReadFile(filename)
Expand All @@ -37,3 +39,4 @@ func FromBytes(data []byte) (string, error) {
return plaintxt.BytesToStr(data)
}
}

0 comments on commit b391e90

Please sign in to comment.