https://github.com/alexferl/tika
Golang client for Apache Tika
https://github.com/alexferl/tika
apache-tika golang-client tika
Last synced: 8 months ago
JSON representation
Golang client for Apache Tika
- Host: GitHub
- URL: https://github.com/alexferl/tika
- Owner: alexferl
- License: mit
- Archived: true
- Created: 2017-08-02T20:38:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T19:54:06.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T02:01:55.737Z (9 months ago)
- Topics: apache-tika, golang-client, tika
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tika [](https://goreportcard.com/report/github.com/admiralobvious/tika)
tika is a Golang client for the [Apache Tika](https://tika.apache.org/) (1.16) REST server.
## Installing
`go get github.com/admiralobvious/tika`## Using
This assumes you have a Tika 1.16 server running locally on port 9998.Simple client:
``` go
package mainimport (
"fmt"
"log""github.com/admiralobvious/tika"
)func main() {
c := tika.NewClient(&tika.Options{Url: "http://localhost:9998"})hi, err := c.Hello()
if err != nil {
log.Fatalf("Error getting hello: %v", err)
}fmt.Printf("Server replied: %s", hi)
}```
Output:
```
Server replied: This is Tika Server (Apache Tika 1.16). Please PUT
```More complex client in [examples](examples).