package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 28, 2016
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
type Container struct {
XMLName xml.Name `xml:"container"`
RootFiles []RootFile `xml:"rootfiles>rootfile"`
}
type Item struct {
Id string `xml:"id,attr"`
Href string `xml:"href,attr"`
MediaType string `xml:"media-type,attr"`
}
type ItemRef struct {
IdRef string `xml:"idref,attr"`
Linear string `xml:"linear,attr"`
}
type Manifest struct {
Items []Item `xml:"item"`
}
type Metadata struct {
Title string `xml:"title"`
Creator string `xml:"creator"`
Language string `xml:"language"`
Identifier string `xml:"identifier"`
Subject string `xml:"subject"`
Publisher string `xml:"publisher"`
Date string `xml:"date"`
}
type Opf struct {
XMLName xml.Name `xml:"package"`
Metadata Metadata `xml:"metadata"`
Manifest Manifest `xml:"manifest"`
Spine Spine `xml:"spine"`
}
type RootFile struct {
FullPath string `xml:"full-path,attr"`
MediaType string `xml:"media-type,attr"`
Opf *Opf
}
type Spine struct {
Toc string `xml:"toc,attr"`
ItemRefs []ItemRef `xml:"itemref"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.