text

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser implements a simple text parser

func NewParser

func NewParser() *Parser

NewParser creates a new text parser

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, r io.Reader) ([]parser.Chunk, error)

Parse parses text into chunks

func (*Parser) SupportedFormats

func (p *Parser) SupportedFormats() []string

SupportedFormats returns supported formats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL