Help us shape the future of Go! Take the 2026 Go Developer Survey

export

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 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 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