reader

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	// StreamInto feeds the strChan channel for every streamed line.
	StreamInto(strChan chan<- string) error
	// Close finalises and invalidates this stream reader.
	Close()
}

func MakeReader

func MakeReader(fileName string) Reader

MakeReader builds a continues file/pipe streamer used to feed the logger. If fileName is not provided, it will attempt to consume the input from the stdin.

Jump to

Keyboard shortcuts

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