mirror of
https://codeberg.org/scip/epuppy.git
synced 2025-12-17 12:31:02 +01:00
gofmt
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
package epub
|
package epub
|
||||||
|
|
||||||
//Container META-INF/container.xml file
|
// Container META-INF/container.xml file
|
||||||
type Container struct {
|
type Container struct {
|
||||||
Rootfile Rootfile `xml:"rootfiles>rootfile" json:"rootfile"`
|
Rootfile Rootfile `xml:"rootfiles>rootfile" json:"rootfile"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//Rootfile root file
|
// Rootfile root file
|
||||||
type Rootfile struct {
|
type Rootfile struct {
|
||||||
Path string `xml:"full-path,attr" json:"path"`
|
Path string `xml:"full-path,attr" json:"path"`
|
||||||
Type string `xml:"media-type,attr" json:"type"`
|
Type string `xml:"media-type,attr" json:"type"`
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
package epub
|
package epub
|
||||||
|
|
||||||
//Opf content.opf
|
// Opf content.opf
|
||||||
type Opf struct {
|
type Opf struct {
|
||||||
Metadata Metadata `xml:"metadata" json:"metadata"`
|
Metadata Metadata `xml:"metadata" json:"metadata"`
|
||||||
Manifest []Manifest `xml:"manifest>item" json:"manifest"`
|
Manifest []Manifest `xml:"manifest>item" json:"manifest"`
|
||||||
Spine Spine `xml:"spine" json:"spine"`
|
Spine Spine `xml:"spine" json:"spine"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//Metadata metadata
|
// Metadata metadata
|
||||||
type Metadata struct {
|
type Metadata struct {
|
||||||
Title []string `xml:"title" json:"title"`
|
Title []string `xml:"title" json:"title"`
|
||||||
Language []string `xml:"language" json:"language"`
|
Language []string `xml:"language" json:"language"`
|
||||||
@@ -53,7 +53,7 @@ type Metafield struct {
|
|||||||
Content string `xml:"content,attr" json:"content"`
|
Content string `xml:"content,attr" json:"content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//Manifest manifest
|
// Manifest manifest
|
||||||
type Manifest struct {
|
type Manifest struct {
|
||||||
ID string `xml:"id,attr" json:"id"`
|
ID string `xml:"id,attr" json:"id"`
|
||||||
Href string `xml:"href,attr" json:"href"`
|
Href string `xml:"href,attr" json:"href"`
|
||||||
|
|||||||
Reference in New Issue
Block a user