An open API service indexing awesome lists of open source software.

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

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)
}
```