modules

package
v0.0.0-...-d1c2850 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct {
	InFilePath chan string
	Out        chan []byte
}

FileReader is a file reader stream

func (*FileReader) OutChan

func (fileReader *FileReader) OutChan() chan []byte

func (*FileReader) Start

func (fileReader *FileReader) Start()

type Printer

type Printer struct {
	In        chan []byte
	LineNotif chan int
}

Printer prints

func (*Printer) LineNotifChan

func (printer *Printer) LineNotifChan() chan int

LineNotifChan notifies for every line it prints, and closed on finish

func (*Printer) Start

func (printer *Printer) Start()

type StdInReader

type StdInReader struct {
	Out chan []byte
}

func (*StdInReader) OutChan

func (self *StdInReader) OutChan() chan []byte

func (*StdInReader) Start

func (self *StdInReader) Start()

type Wrapper

type Wrapper struct {
	In    chan []byte
	Out   chan []byte
	Width int
}

Wrapper wraps the stream if the line is too long

func (*Wrapper) OutChan

func (wrapper *Wrapper) OutChan() chan []byte

OutChan inits and returns the Wrapper's Out channel

func (*Wrapper) Start

func (wrapper *Wrapper) Start()

Init inits the wrapper

Jump to

Keyboard shortcuts

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