ebook

package
v0.0.0-...-5663587 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	Filename       string
	Images         []string
	AssetBaseURL   string
	Title          string
	Content        string
	Id             string
	Order          int
	StylesheetsURL []string
}

Ebook Chapter

type Ebook

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

func NewEbook

func NewEbook(jsonInput []byte) *Ebook

func (*Ebook) Save

func (e *Ebook) Save(outputPath string)

Saves the epub to the specified path

type ImageToFetch

type ImageToFetch struct {
	BaseUrl string
	File    string
	Media   string
	Path    string
}

type JsonBook

type JsonBook struct {
	Title       string
	Uuid        string
	Language    string
	Author      []string
	Cover       string
	Description string
	Publisher   []string
	Stylesheet  string
	Chapters    []Chapter
}

type OebpsContent

type OebpsContent struct {
	Title   string
	Content string
	CoreCSS string
}

Ebook OebpsContent

Jump to

Keyboard shortcuts

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