Versions in this module Expand all Collapse all v1 v1.0.2 Mar 9, 2026 v1.0.1 Mar 9, 2026 v1.0.0 Mar 8, 2026 Changes in this version + type CodeElement struct + Content string + End int + Kind string + Metadata map[string]string + Name string + Start int + type Parser struct + func NewParser() *Parser + func (p *Parser) Parse(ctx context.Context, r io.Reader) ([]core.Chunk, error) + func (p *Parser) ParseWithCallback(ctx context.Context, r io.Reader, callback func(core.Chunk) error) error + func (p *Parser) SetChunkOverlap(overlap int) + func (p *Parser) SetChunkSize(size int) + func (p *Parser) SetExtractComments(enabled bool) + func (p *Parser) SetExtractFunctions(enabled bool) + func (p *Parser) SetExtractTypes(enabled bool) + func (p *Parser) SupportedFormats() []string