Documentation ¶
Overview ¶
Helper to write EPUB files.
We create a zip with the magic EPUB mimetype.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EPUBZip ¶
type EPUBZip struct {
// contains filtered or unexported fields
}
func (*EPUBZip) WriteContent ¶
Write file. Compressed it using deflate.
func (*EPUBZip) WriteMagic ¶
Write mimetype, in a very specific way. This will be valid with epubcheck tools.
type EPUBZipStorageImageReader ¶
type EPUBZipStorageImageReader struct {
// contains filtered or unexported fields
}
func NewEPUBZipStorageImageReader ¶
func NewEPUBZipStorageImageReader(filename string) (*EPUBZipStorageImageReader, error)
func (*EPUBZipStorageImageReader) Close ¶
func (e *EPUBZipStorageImageReader) Close() error
func (*EPUBZipStorageImageReader) Get ¶
func (e *EPUBZipStorageImageReader) Get(filename string) *zip.File
func (*EPUBZipStorageImageReader) Remove ¶
func (e *EPUBZipStorageImageReader) Remove() error
func (*EPUBZipStorageImageReader) Size ¶
func (e *EPUBZipStorageImageReader) Size(filename string) uint64
type EPUBZipStorageImageWriter ¶
type EPUBZipStorageImageWriter struct {
// contains filtered or unexported fields
}
func NewEPUBZipStorageImageWriter ¶
func NewEPUBZipStorageImageWriter(filename string, format string) (*EPUBZipStorageImageWriter, error)
func (*EPUBZipStorageImageWriter) Close ¶
func (e *EPUBZipStorageImageWriter) Close() error
Click to show internal directories.
Click to hide internal directories.