capture

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputCaptor

type OutputCaptor struct {
	OutputHandler func(p []byte) error
}

OutputCaptor - Takes output from a stream and streams it to a callback

func New

func New(outputHandler func(p []byte) error) *OutputCaptor

New - Creates a new captor

func (*OutputCaptor) Write

func (o *OutputCaptor) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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