Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator struct {
// Epub is the data model containing all book information.
Epub *epub.Epub
// contains filtered or unexported fields
}
Creator handles the physical assembly of the EPUB file. It coordinates the writing of structural files, stylesheets, images, and content into a ZIP-compressed stream.
func NewCreator ¶
NewCreator initializes a new Creator with a target io.Writer (e.g., an os.File) and prepares the underlying ZIP engine.
func (*Creator) AddFile ¶
func (c *Creator) AddFile(fileContent files.FileContent[[]byte]) error
AddFile is a method that creates a new file entry in the ZIP archive and writes the provided byte content to it.
Click to show internal directories.
Click to hide internal directories.