format

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EpubLinksFromFile

func EpubLinksFromFile(path string) ([]string, error)

EpubLinksFromFile extracts the URLs from an EPUB file given by its path. The return values are the slice of URLs and any error that happened during the extraction.

func EpubLinksFromUrl

func EpubLinksFromUrl(url string) ([]string, error)

EpubLinksFromUrl extracts the URLs from an EPUB file given with an URL. The return values are the slice of URLs and any error that happened during the extraction.

func ExtractLinksFromZipFile

func ExtractLinksFromZipFile(zipFile archive.ZipData, nameFragment string) (
	[]string, error,
)

func ReadTextFromXmls

func ReadTextFromXmls(xmlFiles []*zip.File) ([]string, error)

func ReadXmls

func ReadXmls(zipReader archive.ZipData, nameFragment string) (xmlTexts []string, err error)

func UrlsFromXml

func UrlsFromXml(xmlText string) ([]string, error)

func UrlsFromXmls

func UrlsFromXmls(xmlTexts []string) ([]string, error)

func XmlFileToString

func XmlFileToString(reader io.Reader) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL