Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2023 Changes in this version + type Book struct + Author string + Authors []string + Content Content + CoverImage []byte + Description string + FilePath string + Navigation []Navigation + ReadingOrder []LocalTextContentFile + Title string + func ReadBook(filePath string) (Book, error) + type Collection struct + Collections []Collection + ID string + Language string + Links []Link + Metadata Metadata + Role string + type Container struct + RootFile RootFile + type Content struct + AllFiles []LocalContentFile + Audios []LocalByteContentFile + Cover LocalByteContentFile + Css []LocalTextContentFile + Fonts []LocalByteContentFile + Html []LocalTextContentFile + Images []LocalByteContentFile + NavigationHtmlFile LocalTextContentFile + type ContentFile struct + ContentFileType ContentFileType + ContentLocation ContentLocation + ContentMimeType string + ContentType ContentType + Key string + type ContentFileType int + const ContentFileTypeByteArray + const ContentFileTypeText + type ContentLocation int + const ContentLocationLocal + const ContentLocationRemote + type ContentType int + const ContentTypeAudioMp3 + const ContentTypeAudioMp4 + const ContentTypeAudioOgg + const ContentTypeCss + const ContentTypeDtb + const ContentTypeDtbNcx + const ContentTypeFontOpentype + const ContentTypeFontSfnt + const ContentTypeFontTruetype + const ContentTypeFontWoff + const ContentTypeFontWoff2 + const ContentTypeImageGif + const ContentTypeImageJpeg + const ContentTypeImagePng + const ContentTypeImageSvg + const ContentTypeImageWebp + const ContentTypeOeb1Css + const ContentTypeOeb1Document + const ContentTypeOther + const ContentTypeScript + const ContentTypeSmil + const ContentTypeXhtml + const ContentTypeXml + type Creator struct + ID string + Value string + type Guide struct + References []Reference + type Identifier struct + ID string + Value string + type ItemRef struct + ID string + IdRef string + Linear string + Properties string + type Link struct + Href string + ID string + MediaType string + type LocalByteContentFile struct + Content []byte + type LocalContentFile struct + FilePath string + type LocalTextContentFile struct + Content string + type Manifest struct + Items []ManifestItem + type ManifestItem struct + Fallback string + FallbackStyle string + Href string + ID string + MediaOverlay string + MediaType string + Properties string + RequiredModules string + RequiredNamespace string + type Metadata struct + Contributers []string + Coverages []string + Creators []Creator + Dates []string + Descriptions []string + Formats []string + Identifiers []Identifier + Languages []string + Publishers []string + Relations []string + Rights []string + Sources []string + Subjects []string + Titles []Title + Types []string + type NavAnchor struct + Alt string + Href string + Text string + Title string + Type string + type NavLi struct + Anchor NavAnchor + ChildOl NavOl + Span NavSpan + type NavOl struct + IsHidden *string + Lis []NavLi + type NavSpan struct + Alt string + Text string + Title string + type Navigation struct + H1 string + H2 string + H3 string + H4 string + H5 string + H6 string + IsHidden *string + Ol NavOl + Type string + type NavigationDocument struct + FilePath string + Navigations []Navigation + Title string + type Package struct + Collections []Collection + Guide Guide + Manifest Manifest + Metadata Metadata + Spine Spine + UniqueIdentifier string + Version string + XMLName xml.Name + func ReadPackage(r *zip.ReadCloser, rootfilePath string) (Package, error) + type Reference struct + Href string + Title string + Type string + type RootFile struct + FullPath string + type Spine struct + ItemRefs []ItemRef + type StructuralSemanticsProperty int + const SspAbstract + const SspAcknowledgements + const SspAfterword + const SspAnnoRef + const SspAnnotation + const SspAnswer + const SspAnswers + const SspAppendix + const SspAside + const SspAssessment + const SspAssessments + const SspBackMatter + const SspBacklink + const SspBalloon + const SspBiblioRef + const SspBibliography + const SspBibloEntry + const SspBodyMatter + const SspBridgehead + const SspCaseStudy + const SspChapter + const SspColophon + const SspConcludingSentence + const SspConclusion + const SspContributors + const SspCopyrightPage + const SspCover + const SspCoverTitle + const SspCredit + const SspCredits + const SspDedication + const SspDivision + const SspEndnote + const SspEndnotes + const SspEpigram + const SspEpilogue + const SspErrata + const SspFeedback + const SspFigure + const SspFillInTheBlankProblem + const SspFootnote + const SspFootnotes + const SspForeword + const SspFrontMatter + const SspFullTitle + const SspGeneralProblem + const SspGlossDef + const SspGlossRef + const SspGlossTerm + const SspGlossary + const SspHalfTitle + const SspHalfTitlePage + const SspHelp + const SspImprimatur + const SspImprint + const SspIndex + const SspIndexEditorNote + const SspIndexEntry + const SspIndexEntryList + const SspIndexGroup + const SspIndexHeadnotes + const SspIndexLegend + const SspIndexLocator + const SspIndexLocatorList + const SspIndexLocatorName + const SspIndexTerm + const SspIndexTermCategories + const SspIndexTermCategory + const SspIndexXrefPreferred + const SspIndexXrefRelated + const SspIntroduction + const SspKeyword + const SspKeywords + const SspLabel + const SspLandmarks + const SspLearningObjective + const SspLearningObjectives + const SspLearningOutcome + const SspLearningOutcomes + const SspLearningResource + const SspLearningResources + const SspLearningStandard + const SspLearningStandards + const SspList + const SspListItem + const SspLoa + const SspLoi + const SspLot + const SspLov + const SspMarginalia + const SspMatchProblem + const SspMultipleChoiceProblem + const SspNote + const SspNoteRef + const SspNotice + const SspOrdinal + const SspOtherCredits + const SspPageList + const SspPagebreak + const SspPanel + const SspPanelGroup + const SspPart + const SspPractice + const SspPractices + const SspPreamble + const SspPreface + const SspPrologue + const SspPullQuote + const SspQna + const SspQuestion + const SspRearnote + const SspRearnotes + const SspRevisionHistory + const SspSeriesPage + const SspSidebar + const SspSoundArea + const SspSubChapter + const SspSubtitle + const SspTable + const SspTableCell + const SspTableRow + const SspTextArea + const SspTip + const SspTitle + const SspTitlePage + const SspToc + const SspTocBrief + const SspTopicSentence + const SspTrueFalseProblem + const SspUnknown + const SspVolume + const SspWarning + type Title struct + ID string + Value string