package epub
import "time"
type opf struct {
Metadata Metadata `xml:"metadata"`
}
type Metadata struct {
Title []string `xml:"title"`
Language []string `xml:"language"`
Identifier []Identifier `xml:"identifier"`
Creator []Author `xml:"creator"`
Subject []string `xml:"subject"`
Description []string `xml:"description"`
Publisher []string `xml:"publisher"`
Contributor []Author `xml:"contributor"`
Date []Date `xml:"date"`
Type []string `xml:"type"`
Format []string `xml:"format"`
Source []string `xml:"source"`
Relation []string `xml:"relation"`
Coverage []string `xml:"coverage"`
Rights []string `xml:"rights"`
Meta []Meta `xml:"meta"`
}
type Identifier struct {
Value string `xml:",chardata"`
ID string `xml:"id,attr"`
Scheme string `xml:"scheme,attr"`
}
type Author struct {
Value string `xml:",chardata"`
FileAs string `xml:"file-as,attr"`
Role string `xml:"role,attr"`
}
type Date struct {
Value time.Time `xml:",chardata"`
Event string `xml:"event,attr"`
}
type Meta struct {
Name string `xml:"name,attr"`
Content string `xml:"content,attr"`
}