get-text

module
v0.0.0-...-ab66c9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause

README

get-text

Go Coverage Status Go Report Card CodeQL

Service to extract text from various formats - wrapper for ebook-convert

Building docker image

make build-docker

Running with compose

Starting service on default port 8003

(cd examples/docker-compose && make start)

Testing

Epub file can be converted with:

curl -X POST http://localhost:8003/text -H 'content-type: multipart/form-data' -F file=@examples/docker-compose/sample.epub

Expected result is:

{"text":"Hello book\n\n\n\n\n\n"}

Stopping/removing docker container

(cd examples/docker-compose && make stop)

License

Copyright © 2021, Airenas Vaičiūnas. Released under the The 3-Clause BSD License.


Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL