Skip to content

Commit

Permalink
test parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Vytek committed Sep 3, 2023
1 parent 256970d commit 8dc1062
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test_run/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ module github.com/vytek/test_run

go 1.21.0

require github.com/vytek/opencrucible v0.0.0-20230902205823-bdb59243ae9b
require github.com/vytek/opencrucible v0.0.0-20230903170623-256970db3309

require (
github.com/EndFirstCorp/peekingReader v0.0.0-20171012052444-257fb6f1a1a6 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/h2non/filetype v1.1.3 // indirect
golang.org/x/net v0.8.0 // indirect
github.com/lu4p/cat v0.1.5 // indirect
golang.org/x/net v0.14.0 // indirect
)
9 changes: 9 additions & 0 deletions test_run/go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
github.com/EndFirstCorp/peekingReader v0.0.0-20171012052444-257fb6f1a1a6 h1:t27CGFMv8DwGwqRPEa2VNof5I/aZwO6q2gfJhN8q0U4=
github.com/EndFirstCorp/peekingReader v0.0.0-20171012052444-257fb6f1a1a6/go.mod h1:zpqkXxDsVfEIUZEWvT9yAo8OmRvSlRrcYQ3Zs8sSubA=
github.com/gabriel-vasile/mimetype v1.1.1/go.mod h1:6CDPel/o/3/s4+bp6kIbsWATq8pmgOisOPG40CJa6To=
github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
github.com/h2non/filetype v1.1.3 h1:FKkx9QbD7HR/zjK1Ia5XiBsq9zdLi5Kf3zGyFTAFkGg=
github.com/h2non/filetype v1.1.3/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY=
github.com/lu4p/cat v0.1.5 h1:s51Bp/ns3u6n+hjjL2F77ySY6j/GD5SJG/t6Ok4Y1S0=
github.com/lu4p/cat v0.1.5/go.mod h1:G3YRyjSvBipqMBRZ2uLf1oRL3/eGGmuZf96m95Y4jRQ=
github.com/vytek/opencrucible v0.0.0-20230902205823-bdb59243ae9b h1:G31fbb6Fa127R6Yi8H0qN5GMk3/mdMI7ZJC0Ers+y3M=
github.com/vytek/opencrucible v0.0.0-20230902205823-bdb59243ae9b/go.mod h1:gbH722FSG0b+WAGC0HNkGFswjx0gB93guhA2Oim1tyc=
github.com/vytek/opencrucible v0.0.0-20230903170623-256970db3309 h1:QbD08eMf18E32p7Vr0wAoYpILyIWypO8PEvsEOyis98=
github.com/vytek/opencrucible v0.0.0-20230903170623-256970db3309/go.mod h1:UzY5jtoCEJqiYfasOIQdvZ+e2m0w8DfAerwd6ImVr/w=
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14=
golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
3 changes: 3 additions & 0 deletions test_run/test_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@ func main() {
MIMEType, Ext, _ = opencrucible.DetectFileTypeMIME(pdf)
fmt.Println(MIMEType)
fmt.Println(Ext)
//** PARSERS **//
fmt.Println(opencrucible.TXTParseToString(txt))
fmt.Println(opencrucible.RTFParseToString(rtf))
}

0 comments on commit 8dc1062

Please sign in to comment.