epubreader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EpubReader

func EpubReader(epubFilepath string, reader func(book.Page))

Types

type Epub

type Epub struct {
	Book     *epub.Book
	Filepath string
}

type Page

type Page struct {
	Epub *Epub
	Path string
	XML  struct {
		XMLName xml.Name `xml:"html"`
		Title   string   `xml:"head>title"`
		Body    struct {
			InnerXml string `xml:",innerxml"`
		} `xml:"body"`
	}
}

func (*Page) BookName

func (p *Page) BookName() string

func (*Page) Creators

func (p *Page) Creators() string

func (*Page) Markdown

func (p *Page) Markdown() string

func (*Page) Text

func (p *Page) Text() string

Jump to

Keyboard shortcuts

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