From c2abc4ba4d87bb8ba236966935131e5177125a8f Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Fri, 17 Oct 2025 14:22:03 +0200 Subject: [PATCH] gofmt --- pkg/epub/container.go | 4 ++-- pkg/epub/opf.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/epub/container.go b/pkg/epub/container.go index 3a8cfba..a847733 100644 --- a/pkg/epub/container.go +++ b/pkg/epub/container.go @@ -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"` diff --git a/pkg/epub/opf.go b/pkg/epub/opf.go index a516a1c..c140340 100644 --- a/pkg/epub/opf.go +++ b/pkg/epub/opf.go @@ -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"`