Versions in this module Expand all Collapse all v1 v1.0.0 Jun 20, 2021 Changes in this version + var DefaultLang = Element + var DefaultTitle = ElementLang + var MimeTypes = map[string]string + var PackageFilename = "package.opf" + var RootPath = "OEBPS" + func NewUUID() string + type Collection struct + Collections []Collection + Dir string + ID string + Lang string + Links []Link + Metadata *Metadata + Role string + type Container struct + Rootfiles []RootFile + Version string + XMLName xml.Name + type ContentType byte + const Auxiliary + const Media + const Primary + type Element struct + ID string + Value string + type ElementLang struct + Dir string + ID string + Lang string + Value string + type Item struct + Fallback string + Href string + ID string + MediaOverlay string + MediaType string + Properties string + type ItemRef struct + ID string + IDRef string + Linear string + Properties string + type Link struct + Href string + ID string + MediaType string + Refines string + Rel string + type Manifest struct + ID string + Items []Item + type Meta struct + Dir string + ID string + Lang string + Property string + Refines string + Scheme string + Value string + type Metadata struct + Contributor []ElementLang + Coverage []ElementLang + Creator []ElementLang + DC string + Date *Element + Description []ElementLang + Format []Element + Identifier []Element + Language []Element + Link []Link + Meta []Meta + Publisher []ElementLang + Relation []ElementLang + Rights []ElementLang + Source []Element + Subject []ElementLang + Title []ElementLang + Type []Element + func (m *Metadata) AddAuthors(names ...string) + func (m *Metadata) AddSubjects(names ...string) + func (m *Metadata) AddTitle(name string) + func (m *Metadata) SetDate(date string) (err error) + func (m *Metadata) SetDescription(description string) + func (m *Metadata) SetLang(lang string) + func (m *Metadata) SetPublisher(name string) + func (m *Metadata) SetRights(rights string) + func (m *Metadata) SetUUID(id string) + type Package struct + Collection *Collection + Dir string + ID string + Lang string + Manifest Manifest + Metadata Metadata + Prefix string + Spine Spine + UniqueIdentifier string + Version string + XMLName xml.Name + type RootFile struct + FullPath string + MediaType string + type Spine struct + ID string + ItemRefs []ItemRef + PageDirection string + Toc string + type Writer struct + func New(w io.Writer) (wr *Writer, err error) + func (w *Writer) AddContent(r io.Reader, name string, ct ContentType, properties ...string) error + func (w *Writer) Close() error