This commit is contained in:
2025-10-17 14:22:03 +02:00
parent b9b0ad8603
commit c2abc4ba4d
2 changed files with 5 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
package epub
//Container META-INF/container.xml file
// Container META-INF/container.xml file
type Container struct {
Rootfile Rootfile `xml:"rootfiles>rootfile" json:"rootfile"`
}
//Rootfile root file
// Rootfile root file
type Rootfile struct {
Path string `xml:"full-path,attr" json:"path"`
Type string `xml:"media-type,attr" json:"type"`

View File

@@ -1,13 +1,13 @@
package epub
//Opf content.opf
// Opf content.opf
type Opf struct {
Metadata Metadata `xml:"metadata" json:"metadata"`
Manifest []Manifest `xml:"manifest>item" json:"manifest"`
Spine Spine `xml:"spine" json:"spine"`
}
//Metadata metadata
// Metadata metadata
type Metadata struct {
Title []string `xml:"title" json:"title"`
Language []string `xml:"language" json:"language"`
@@ -53,7 +53,7 @@ type Metafield struct {
Content string `xml:"content,attr" json:"content"`
}
//Manifest manifest
// Manifest manifest
type Manifest struct {
ID string `xml:"id,attr" json:"id"`
Href string `xml:"href,attr" json:"href"`