Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFilename ¶ added in v1.4.3
DefaultFilename 返回指定导出格式的默认文件名(与 ExportNovel 返回的一致)。
func ExportNovel ¶
func ExportNovel(n *novel.Novel, chapters []ChapterWithContent, format, author string) ([]byte, string, error)
ExportNovel 根据 format 生成导出内容,返回字节数据和默认文件名。 author 优先作为 EPUB 元数据中的作者名,为空时使用默认值。
Types ¶
type ChapterWithContent ¶
ChapterWithContent 将章节元数据和正文绑定在一起。
Click to show internal directories.
Click to hide internal directories.