epubwriter

package module
v0.0.0-...-78a822e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: MIT Imports: 7 Imported by: 0

README

epubwriter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	Bytes    []byte
	Filename string
	Id       string
	Title    string
}

type Cover

type Cover struct {
	Bytes    []byte
	Filename string
}

type Item

type Item struct {
	Bytes    []byte
	Filename string
}

type Manifest

type Manifest struct {
	Href       string
	Id         string
	MediaType  string
	Properties string
}

type Spine

type Spine struct {
	Idref  string
	Linear bool
}

type Style

type Style struct {
	Bytes    []byte
	Filename string
	Id       string
}

type Writer

type Writer struct {
	Author     string
	Chapters   []*Chapter
	Cover      *Cover
	Identifier string
	Items      []*Item
	Language   string
	Manifest   []*Manifest
	Spine      []*Spine
	Styles     []*Style
	Title      string
}

func NewWriter

func NewWriter(title string, author string, identifier string) *Writer

func (*Writer) AddCover

func (w *Writer) AddCover(filename string, b []byte) *Cover

func (*Writer) AddItem

func (w *Writer) AddItem(filename string, mediatype string, b []byte) *Item

func (*Writer) AppendChapter

func (w *Writer) AppendChapter(title string, filename string, b []byte) *Chapter

func (*Writer) AppendStyle

func (w *Writer) AppendStyle(b []byte) *Style

func (*Writer) Bytes

func (w *Writer) Bytes() ([]byte, error)

func (*Writer) WriteFile

func (w *Writer) WriteFile(filename string) error

Jump to

Keyboard shortcuts

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