Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFormat ¶
func RegisterFormat(f *Format)
RegisterFormat adds a format to the Formats list. This function does not do anything if there is already a format with the given extension.
Types ¶
type Format ¶
type Format struct { Glob string Extension string // Needs to include the leading period. Also used as the unique identifier. Indexer IndexerFunc }
Format represents a handler for an ebook format.
type FormatList ¶
type FormatList []*Format
FormatList represents a list of formats.
var Formats FormatList
Formats is the list of registered formats.
Click to show internal directories.
Click to hide internal directories.