export

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(idx *index.Index, opts Options) error

Export converts markdown files to the specified output format.

Types

type Format

type Format int

Format identifies the export output format.

const (
	FormatHTML Format = iota
	FormatPDF
)

type Options

type Options struct {
	Format    Format
	OutputDir string
	Files     []string // specific files, or empty for all markdown
	Progress  ProgressFunc
}

Options configures the export operation.

type ProgressFunc

type ProgressFunc func(current, total int, file string)

ProgressFunc is called with (current, total, filename) during export.

Jump to

Keyboard shortcuts

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