Versions in this module Expand all Collapse all v0 v0.3.1 Sep 23, 2026 Changes in this version + type Docx struct + func (Docx) Parse(ctx context.Context, d semantic.Doc) (semantic.Doc, error) + type Pptx struct + func (Pptx) Parse(ctx context.Context, d semantic.Doc) (semantic.Doc, error) + type Xlsx struct + func (Xlsx) Parse(ctx context.Context, d semantic.Doc) (semantic.Doc, error) v0.3.0 Sep 11, 2026 v0.2.4 Sep 9, 2026 v0.2.3 Sep 9, 2026 v0.2.2 Sep 9, 2026 v0.2.1 Sep 9, 2026 v0.2.0 Sep 8, 2026 Changes in this version + var ErrFormat = errors.New("no reader for format") + func Data(d semantic.Doc) any + func Detect(d semantic.Doc) string + func Fields(d semantic.Doc) []string + func Flatten(v any) map[string]any + func Names() []string + func Register(name string, f Format) + func Tags(d semantic.Doc) map[string]string + func Title(d semantic.Doc) string + type Any struct + func (Any) Parse(ctx context.Context, d semantic.Doc) (semantic.Doc, error) + type CSV struct + Bare bool + Sep rune + func (c CSV) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error) + type Email struct + func (Email) Parse(ctx context.Context, d semantic.Doc) (semantic.Doc, error) + type Format interface + Parse func(context.Context, semantic.Doc) (semantic.Doc, error) + func Get(name string) (Format, bool) + type HTML struct + Base string + func (h HTML) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error) + type JSON struct + func (JSON) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error) + type Link struct + Text string + URL string + func Images(d semantic.Doc) []Link + func Links(d semantic.Doc) []Link + type Markdown struct + func (Markdown) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error) + type Node struct + Attr map[string]string + Name string + Nodes []*Node + Space string + Text string + func (n *Node) Find(name string) []*Node + type Section struct + End int + Level int + Start int + Title string + func Sections(d semantic.Doc) []Section + func (s Section) Text(d semantic.Doc) string + type Text struct + func (Text) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error) + type XML struct + func (XML) Parse(_ context.Context, d semantic.Doc) (semantic.Doc, error)