export

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFilename added in v1.4.3

func DefaultFilename(n *novel.Novel, format string) (string, error)

DefaultFilename 返回指定导出格式的默认文件名(与 ExportNovel 返回的一致)。

func ExportNovel

func ExportNovel(n *novel.Novel, chapters []ChapterWithContent, format, author string) ([]byte, string, error)

ExportNovel 根据 format 生成导出内容,返回字节数据和默认文件名。 author 优先作为 EPUB 元数据中的作者名,为空时使用默认值。

Types

type ChapterWithContent

type ChapterWithContent struct {
	Chapter chapter.Chapter
	Content string
}

ChapterWithContent 将章节元数据和正文绑定在一起。

Jump to

Keyboard shortcuts

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