formater

package
v0.2.2-0...-091e9c0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

README

This is a bare bone utilities to convert a stream onto text for full text search purpose. There's some other alternative but none of them run with a small footprint.

At the moment it supports:

  • office documents
  • pdf (TODO: remove dependency on pdftotext)
  • text base files

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OfficeFormater

func OfficeFormater(r io.ReadCloser) (io.ReadCloser, error)

func PdfFormater

func PdfFormater(r io.ReadCloser) (io.ReadCloser, error)

func TxtFormater

func TxtFormater(rc io.ReadCloser) (io.ReadCloser, error)

Types

type WordDoc

type WordDoc struct {
	Text []byte `xml:",innerxml"`
}

Jump to

Keyboard shortcuts

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