readers

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileList added in v0.1.11

func ReadFileList(fileName string, outList *[]string) error

Read from a file.

Types

type FileReaderOptions

type FileReaderOptions struct {
	Path string
}

FileReaderOptions are options for the file reader

type Reader

type Reader interface {
	Read(chan<- string) error
}

Reader defines a reader. NOTE: The Reader needs to close the channel when done to stop the runner. You would typically do this with a "defer close(ch)" at the start of your Read() implementation.

Jump to

Keyboard shortcuts

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