epub

package
v0.0.0-...-aab7402 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEpub error = errors.New("Invalid Epub file")
)

Functions

This section is empty.

Types

type Epub

type Epub struct {
	Metadata Metadata
	Tokens   []html.Token
}

func NewFromFile

func NewFromFile(filename string) (*Epub, error)

type Metadata

type Metadata struct {
	Title        string   `xml:"http://purl.org/dc/elements/1.1/ title"`
	Author       string   `xml:"http://purl.org/dc/elements/1.1/ creator"`
	Contributors []string `xml:"http://purl.org/dc/elements/1.1/ contributor"`
	Subjects     []string `xml:"http://purl.org/dc/elements/1.1/ subject"`
	Language     string   `xml:"http://purl.org/dc/elements/1.1/ language"`
	Date         string   `xml:"http://purl.org/dc/elements/1.1/ date"`
	Source       string   `xml:"http://purl.org/dc/elements/1.1/ source"`
}

Jump to

Keyboard shortcuts

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