Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶ added in v0.1.1
type Author struct { Data string `xml:",chardata" json:"author"` FileAs string `xml:"file-as,attr" json:"file_as"` Role string `xml:"role,attr" json:"role"` }
Author author
type Book ¶
type Book struct { Ncx Ncx `json:"ncx"` Opf Opf `json:"opf"` Container Container `json:"-"` Mimetype string `json:"-"` // contains filtered or unexported fields }
Book epub book
type Container ¶
type Container struct {
Rootfile Rootfile `xml:"rootfiles>rootfile" json:"rootfile"`
}
Container META-INF/container.xml file
type Content ¶ added in v0.1.1
type Content struct {
Src string `xml:"src,attr" json:"src"`
}
Content nav-point content
type Date ¶ added in v0.1.1
type Date struct { Data string `xml:",chardata" json:"data"` Event string `xml:"event,attr" json:"event"` }
Date date
type Identifier ¶ added in v0.1.1
type Identifier struct { Data string `xml:",chardata" json:"data"` ID string `xml:"id,attr" json:"id"` Scheme string `xml:"scheme,attr" json:"scheme"` }
Identifier identifier
type Manifest ¶ added in v0.1.1
type Manifest struct { ID string `xml:"id,attr" json:"id"` Href string `xml:"href,attr" json:"href"` MediaType string `xml:"media-type,attr" json:"type"` Fallback string `xml:"media-fallback,attr" json:"fallback"` Properties string `xml:"properties,attr" json:"properties"` MediaOverlay string `xml:"media-overlay,attr" json:"overlay"` }
Manifest manifest
type Metadata ¶ added in v0.1.1
type Metadata struct { Title []string `xml:"title" json:"title"` Language []string `xml:"language" json:"language"` Identifier []Identifier `xml:"identifier" json:"identifier"` Creator []Author `xml:"creator" json:"creator"` Subject []string `xml:"subject" json:"subject"` Description []string `xml:"description" json:"description"` Publisher []string `xml:"publisher" json:"publisher"` Contributor []Author `xml:"contributor" json:"contributor"` Date []Date `xml:"date" json:"date"` Type []string `xml:"type" json:"type"` Format []string `xml:"format" json:"format"` Source []string `xml:"source" json:"source"` Relation []string `xml:"relation" json:"relation"` Coverage []string `xml:"coverage" json:"coverage"` Rights []string `xml:"rights" json:"rights"` Meta []Metafield `xml:"meta" json:"meta"` }
Metadata metadata
type Metafield ¶ added in v0.1.1
type Metafield struct { Name string `xml:"name,attr" json:"name"` Content string `xml:"content,attr" json:"content"` }
Metafield metafield
type Ncx ¶
type Ncx struct {
Points []NavPoint `xml:"navMap>navPoint" json:"points"`
}
Ncx OPS/toc.ncx
type Opf ¶
type Opf struct { Metadata Metadata `xml:"metadata" json:"metadata"` Manifest []Manifest `xml:"manifest>item" json:"manifest"` Spine Spine `xml:"spine" json:"spine"` }
Opf content.opf
type Rootfile ¶ added in v0.1.1
type Rootfile struct { Path string `xml:"full-path,attr" json:"path"` Type string `xml:"media-type,attr" json:"type"` }
Rootfile root file
Click to show internal directories.
Click to hide internal directories.