Documentation
¶
Overview ¶
Package epubzip 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 ¶
WriteContent Write file. Compressed it using deflate.
func (EPUBZip) WriteMagic ¶
WriteMagic Write mimetype, in a very specific way.
This will be valid with epubcheck tools.
type Image ¶
type Image struct { Header *zip.FileHeader Data []byte }
type StorageImageReader ¶
type StorageImageReader struct {
// contains filtered or unexported fields
}
func NewStorageImageReader ¶
func NewStorageImageReader(filename string) (StorageImageReader, error)
func (StorageImageReader) Close ¶
func (e StorageImageReader) Close() error
func (StorageImageReader) Remove ¶
func (e StorageImageReader) Remove() error
func (StorageImageReader) Size ¶
func (e StorageImageReader) Size(filename string) uint64
type StorageImageWriter ¶
type StorageImageWriter struct {
// contains filtered or unexported fields
}
func NewStorageImageWriter ¶
func NewStorageImageWriter(filename string, format string) (StorageImageWriter, error)
func (StorageImageWriter) Close ¶
func (e StorageImageWriter) Close() error
Click to show internal directories.
Click to hide internal directories.