Versions in this module Expand all Collapse all v0 v0.2.0 Aug 19, 2026 v0.1.0 Aug 17, 2026 Changes in this version + const OutputJSON + const OutputPDF + const OutputZIP + var ErrBadCSV = errors.New("invalid csv") + var ErrEmptyBatch = errors.New("batch is empty") + var ErrNoRenderer = errors.New("no render function supplied") + var ErrTooManyItems = errors.New("too many items") + var ErrUnsupportedOutput = errors.New("unsupported batch output") + type Item struct + Data string + ID string + Options map[string]any + Payload map[string]any + Type string + func ParseCSV(text string) ([]Item, error) + type Output struct + Body []byte + Filename string + MIME string + Results []Result + func Run(ctx context.Context, req Request, render RenderFunc, o RunOptions) (*Output, error) + type RenderFunc func(ctx context.Context, item Item, defaults map[string]any) (Rendered, error) + type Rendered struct + Body []byte + Data string + Extension string + MIME string + type Request struct + CSV string + Defaults map[string]any + Items []Item + Output string + type Result struct + Body string + Bytes int + Data string + Error string + Filename string + ID string + MIME string + OK bool + type RunOptions struct + Concurrency int + MaxItems int