book

package
v0.0.0-...-94b3e95 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Title           string
	TitleKey        string
	Author          string
	Language        string
	URL             string
	Chapters        Chapters
	Year            string
	MaybeMissingBFL bool
}

func New

func New(zipData []byte) (*Book, error)

func (*Book) WriteEPUB

func (b *Book) WriteEPUB(w io.Writer) error

type Chapter

type Chapter struct {
	Title string
	Body  string // HTML to be wrapped in a body tag
	// contains filtered or unexported fields
}

type Chapters

type Chapters []Chapter

func (Chapters) Titles

func (chs Chapters) Titles() []string

Jump to

Keyboard shortcuts

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