Versions in this module Expand all Collapse all v1 v1.0.0 Mar 29, 2026 Changes in this version + var DefaultIgnoreList = map[string]bool + var SupportedExtensions = []string + type CSVExtractor struct + Separator rune + func (e *CSVExtractor) Extract(path string) (string, error) + type Chunk struct + Content string + Index int + type Chunker struct + Overlap int + Size int + func NewChunker(size, overlap int) *Chunker + func (c *Chunker) ChunkText(text string) []Chunk + type ContentExtractor interface + Extract func(path string) (string, error) + type DocxExtractor struct + func (e *DocxExtractor) Extract(path string) (string, error) + type ExtractorRegistry struct + func NewExtractorRegistry() *ExtractorRegistry + func (r *ExtractorRegistry) Get(ext string) (ContentExtractor, bool) + func (r *ExtractorRegistry) Register(ext string, e ContentExtractor) + type FileResult struct + Content string + Path string + type HTMLExtractor struct + func (e *HTMLExtractor) Extract(path string) (string, error) + type JSONExtractor struct + func (e *JSONExtractor) Extract(path string) (string, error) + type ODFExtractor struct + func (e *ODFExtractor) Extract(path string) (string, error) + type PDFExtractor struct + func (e *PDFExtractor) Extract(path string) (string, error) + type RTFExtractor struct + func (e *RTFExtractor) Extract(path string) (string, error) + type SQLExtractor struct + func (e *SQLExtractor) Extract(path string) (string, error) + type TextExtractor struct + func (e *TextExtractor) Extract(path string) (string, error) + type Walker struct + IgnoreList map[string]bool + Registry *ExtractorRegistry + func NewWalker() *Walker + func (w *Walker) Walk(root string) (<-chan FileResult, <-chan error) + type XMLExtractor struct + func (e *XMLExtractor) Extract(path string) (string, error) + type XlsxExtractor struct + func (e *XlsxExtractor) Extract(path string) (string, error) + type YAMLExtractor struct + func (e *YAMLExtractor) Extract(path string) (string, error)