Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultChapterSanitiser ¶
func DefaultChapterSanitiser(a readability.Article) (readability.Article, error)
Types ¶
type Epublifier ¶
type Epublifier struct { Title string Author string CoverImagePath string CoverImageCSSPath string URLIterator func() string ChapterSanitiser func(readability.Article) (readability.Article, error) SavePath string }
func (*Epublifier) Create ¶
func (e *Epublifier) Create() error
type EpublifierError ¶
type EpublifierError string
const ( TitleNotProvidedErr EpublifierError = "title not provided" IteratorNotProvidedErr EpublifierError = "iterator not provided to iterate through urls" AuthorNotProvidedErr EpublifierError = "author not provided" SavePathNotProvidedErr EpublifierError = "save path not provided" CoverImageCSSPathNotProvidedErr EpublifierError = "cover image css path which is necessary when providing cover image" )
func (EpublifierError) Error ¶
func (e EpublifierError) Error() string
Click to show internal directories.
Click to hide internal directories.