epub

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Paths

func Paths(paths []string, recursive bool) (iter.Seq2[string, []string], error)

Return an iterator over paths ending in ".epub" and matching paths with other extensions.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func NewFilter

func NewFilter(includeValues, excludeValues []string, includeAny, excludeAny, ignoreCase bool) (*Filter, error)

func (*Filter) Pass

func (m *Filter) Pass(path string, metadata *Metadata) bool

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

func ParseMetadata

func ParseMetadata(path string) (*Metadata, error)

func (*Metadata) Creator

func (md *Metadata) Creator() string

func (*Metadata) Publisher

func (md *Metadata) Publisher() string

func (*Metadata) Title

func (md *Metadata) Title() string

type MetadataElement

type MetadataElement struct {
	Creator   []string `xml:"creator"`
	Publisher []string `xml:"publisher"`
	Title     []string `xml:"title"`
}

Jump to

Keyboard shortcuts

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