https://github.com/wmentor/epub
Epub Go reader library
https://github.com/wmentor/epub
epub epub-library epub-reader go go-epub-reader golang golang-library
Last synced: 9 months ago
JSON representation
Epub Go reader library
- Host: GitHub
- URL: https://github.com/wmentor/epub
- Owner: wmentor
- License: mit
- Created: 2021-01-04T15:07:23.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-05T14:20:05.000Z (over 5 years ago)
- Last Synced: 2024-11-14T13:25:09.632Z (over 1 year ago)
- Topics: epub, epub-library, epub-reader, go, go-epub-reader, golang, golang-library
- Language: Go
- Homepage:
- Size: 1.49 MB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# epub
Golang epub reader library
## Summary
* Written on pure Go
* Require Go version >= 1.14
## Install
```plaintext
go get github.com/wmentor/epub
```
## Usage
```golang
package main
import (
"fmt"
"os"
"github.com/wmentor/epub"
)
func main() {
err := epub.Reader("./data/test.epub", func(chapter string, chapterHTML []byte) bool {
fmt.Println(chapter)
})
if err != nil {
panic(err)
}
// print epub to Stdout as text
epub.ToTxt("./data/test.epub", os.Stdout)
}
```