We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1fae5 commit b391e90Copy full SHA for b391e90
1 file changed
cat.go
@@ -12,6 +12,8 @@ import (
12
"github.com/lu4p/cat/rtftxt"
13
)
14
15
+var test string
16
+
17
// File reads a .odt, .docx, .rtf or plaintext file and returns the content as a string
18
func File(filename string) (string, error) {
19
content, err := ioutil.ReadFile(filename)
@@ -37,3 +39,4 @@ func FromBytes(data []byte) (string, error) {
37
39
return plaintxt.BytesToStr(data)
38
40
}
41
42
0 commit comments