-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.go
45 lines (38 loc) · 946 Bytes
/
metadata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package epub
type Identifier struct {
Value string
IdentifierType string
}
type Creator struct {
Name string `json:"name"`
Role string `json:"role"`
}
type Metadata struct {
Language string `json:"language"`
Title string `json:"title"`
Creator Creator `json:"creator"`
Publisher string `json:"publisher"`
Date string `json:"date"`
DateCopyrighted string `json:"date_copyrighted"`
ISBN13 string `json:"isbn13"`
}
type ManifestItem struct {
Id string
Href string
MediaType string
Properties []string // http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-item-property-value
Title *string
}
type Manifest struct {
ManifestItems []ManifestItem
}
type OpfRootFile struct {
FullPath string
MediaType string
Identifiers []Identifier
Metadata Metadata
Manifest Manifest
}
type Opf struct {
RootFiles []OpfRootFile
}