Versions in this module Expand all Collapse all v1 v1.0.2 Oct 13, 2022 Changes in this version + const CSSFolderName + const FontFolderName + const ImageFolderName + const VideoFolderName + func Use(s FSType) + type Epub struct + func NewEpub(title string) *Epub + func (e *Epub) AddCSS(source string, internalFilename string) (string, error) + func (e *Epub) AddFont(source string, internalFilename string) (string, error) + func (e *Epub) AddImage(source string, imageFilename string) (string, error) + func (e *Epub) AddSection(body string, sectionTitle string, internalFilename string, ...) (string, error) + func (e *Epub) AddSubSection(parentFilename string, body string, sectionTitle string, ...) (string, error) + func (e *Epub) AddVideo(source string, videoFilename string) (string, error) + func (e *Epub) Author() string + func (e *Epub) Description() string + func (e *Epub) Identifier() string + func (e *Epub) Lang() string + func (e *Epub) Ppd() string + func (e *Epub) SetAuthor(author string) + func (e *Epub) SetCover(internalImagePath string, internalCSSPath string) + func (e *Epub) SetDescription(desc string) + func (e *Epub) SetIdentifier(identifier string) + func (e *Epub) SetLang(lang string) + func (e *Epub) SetPpd(direction string) + func (e *Epub) SetTitle(title string) + func (e *Epub) Title() string + func (e *Epub) Write(destFilePath string) error + func (e *Epub) WriteTo(dst io.Writer) (int64, error) + type FSType int + const MemoryFS + const OsFS + type FileRetrievalError struct + Err error + Source string + func (e *FileRetrievalError) Error() string + type FilenameAlreadyUsedError struct + Filename string + func (e *FilenameAlreadyUsedError) Error() string + type ParentDoesNotExistError struct + Filename string + func (e *ParentDoesNotExistError) Error() string + type UnableToCreateEpubError struct + Err error + Path string + func (e *UnableToCreateEpubError) Error() string