loader

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SourceMetadataKey = "source"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryLoader

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

func NewDirectoryLoader

func NewDirectoryLoader(dirname string, regExPathMatch string) (*DirectoryLoader, error)

func (*DirectoryLoader) Load

func (t *DirectoryLoader) Load() ([]document.Document, error)

type TextLoader

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

func NewTextLoader

func NewTextLoader(filename string, metadata map[string]interface{}) (*TextLoader, error)

func (*TextLoader) Load

func (t *TextLoader) Load() ([]document.Document, error)

Jump to

Keyboard shortcuts

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