docx

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocxStreamParser

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

DocxStreamParser implements a DOCX document parser

func NewDocxStreamParser

func NewDocxStreamParser() *DocxStreamParser

NewDocxStreamParser creates a new DOCX parser

func (*DocxStreamParser) GetSupportedTypes

func (p *DocxStreamParser) GetSupportedTypes() []string

GetSupportedTypes returns supported formats

func (*DocxStreamParser) ParseStream

func (p *DocxStreamParser) ParseStream(ctx context.Context, r io.Reader, metadata map[string]any) (<-chan *entity.Document, error)

ParseStream reads the incoming io.Reader and yields chunks of the document via a channel

Jump to

Keyboard shortcuts

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