Versions in this module Expand all Collapse all v1 v1.0.0 Apr 19, 2026 Changes in this version + func BatchGenerateWithStats(ctx context.Context, gen qrcode.Generator, items []Item, ...) ([]Result, *BatchStats, error) + func QuickBatch(ctx context.Context, dataList []string, size ...int) ([][]byte, error) + type BatchStats struct + AvgTime time.Duration + Failed int + MaxTime time.Duration + MinTime time.Duration + Succeeded int + Total int + TotalTime time.Duration + type Item struct + Data string + ID string + Payload payload.Payload + type Processor struct + func NewProcessor(gen qrcode.Generator, opts ...ProcessorOption) *Processor + func (p *Processor) FromCSV(_ context.Context, reader io.Reader) ([]Item, error) + func (p *Processor) FromJSON(_ context.Context, reader io.Reader) ([]Item, error) + func (p *Processor) Process(ctx context.Context, items []Item) ([]Result, error) + func (p *Processor) ProcessWithStats(ctx context.Context, items []Item) ([]Result, *BatchStats, error) + func (p *Processor) SaveToDir(ctx context.Context, items []Item, outputDir string) ([]Result, error) + type ProcessorOption func(*Processor) + func WithBatchConcurrency(n int) ProcessorOption + func WithBatchFormat(f qrcode.Format) ProcessorOption + func WithBatchOutputDir(dir string) ProcessorOption + type Result struct + Data []byte + Err error + ID string + Path string + QRCode *encoding.QRCode + func BatchSaveToDir(ctx context.Context, gen qrcode.Generator, items []Item, outputDir string, ...) ([]Result, error) Other modules containing this package github.com/os-gomod/qrcode/v2