epub

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: MIT Imports: 6 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Ncx       Ncx       `json:"ncx"`
	Opf       Opf       `json:"opf"`
	Container Container `json:"-"`
	Mimetype  string    `json:"-"`
	// contains filtered or unexported fields
}

Book epub book

func Open

func Open(fn string) (*Book, error)

Open open a epub file

func (*Book) Close

func (p *Book) Close()

Close close file reader

func (*Book) Files

func (p *Book) Files() []string

Files list resource files

func (*Book) Open

func (p *Book) Open(n string) (io.ReadCloser, error)

Open open resource file

type Container

type Container struct {
	Rootfile rootfile `xml:"rootfiles>rootfile" json:"rootfile"`
}

Container META-INF/container.xml file

type Ncx

type Ncx struct {
	Points []navpoint `xml:"navMap>navPoint" json:"points"`
}

Ncx OPS/toc.ncx

type Opf

type Opf struct {
	Metadata meta       `xml:"metadata" json:"metadata"`
	Manifest []manifest `xml:"manifest>item" json:"manifest"`
	Spine    spine      `xml:"spine" json:"spine"`
}

Opf content.opf

Jump to

Keyboard shortcuts

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