Documentation ¶
Index ¶
- Constants
- type FileProperties
- type Item
- type ItemRef
- type Meta
- type Ncx
- type Opf
- type Reference
- type Writer
- func (w *Writer) AddFile(path string, r io.Reader, props FileProperties) error
- func (w *Writer) AddGuide(guideType, title, href string)
- func (w *Writer) Close() error
- func (w *Writer) SetCreator(creator string)
- func (w *Writer) SetIdentifier(identifier string)
- func (w *Writer) SetLanguage(language string)
- func (w *Writer) SetTitle(title string)
Constants ¶
View Source
const Mimetype = "application/epub+zip"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileProperties ¶
type Ncx ¶
type Opf ¶
type Opf struct { XMLName xml.Name `xml:"http://www.idpf.org/2007/opf package"` Version string `xml:"version,attr"` UniqueIdentifier string `xml:"unique-identifier,attr"` Metadata struct { Opf string `xml:"xmlns:opf,attr"` Dc string `xml:"xmlns:dc,attr"` Language string `xml:"dc:language"` Title string `xml:"dc:title"` Creator string `xml:"dc:creator"` Identifier struct { Text string `xml:",chardata"` Id string `xml:"id,attr"` } `xml:"dc:identifier"` Meta []Meta `xml:"meta"` } `xml:"metadata"` Manifest struct { Item []Item `xml:"item"` } `xml:"manifest"` Spine struct { ItemRef []ItemRef `xml:"itemref"` } `xml:"spine"` Guide struct { Reference []Reference `xml:"reference"` } `xml:"guide"` }
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) SetCreator ¶
func (*Writer) SetIdentifier ¶
func (*Writer) SetLanguage ¶
Click to show internal directories.
Click to hide internal directories.