Documentation
¶
Index ¶
- func NewCSVPlugin(logger *slog.Logger) model.ParserPlugin
- type CSVPlugin
- func (p *CSVPlugin) CanHandle(path string, info fs.FileInfo) bool
- func (p *CSVPlugin) Chunk(content string, path string, opts *schema.CodeChunkingOptions) ([]schema.CodeChunk, error)
- func (p *CSVPlugin) Extensions() []string
- func (p *CSVPlugin) ExtractMetadata(content string, path string) (model.FileMetadata, error)
- func (p *CSVPlugin) Name() string
- type CSVStructure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSVPlugin ¶
func NewCSVPlugin(logger *slog.Logger) model.ParserPlugin
NewCSVPlugin creates a new CSV file parser plugin
Types ¶
type CSVPlugin ¶
type CSVPlugin struct {
// contains filtered or unexported fields
}
CSVPlugin implements model.ParserPlugin for CSV files
func (*CSVPlugin) Chunk ¶
func (p *CSVPlugin) Chunk(content string, path string, opts *schema.CodeChunkingOptions) ([]schema.CodeChunk, error)
Chunk breaks CSV into semantic chunks based on rows or logical sections
func (*CSVPlugin) Extensions ¶
Extensions returns file extensions for CSV files
func (*CSVPlugin) ExtractMetadata ¶
ExtractMetadata extracts metadata from CSV content
Click to show internal directories.
Click to hide internal directories.