filch

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: BSD-3-Clause Imports: 6 Imported by: 12

Documentation

Overview

Package filch is a file system queue that pilfers your stderr. (A FILe CHannel that filches.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filch

type Filch struct {
	OrigStderr *os.File
	// contains filtered or unexported fields
}

func New

func New(filePrefix string, opts Options) (f *Filch, err error)

func (*Filch) Close

func (f *Filch) Close() (err error)

func (*Filch) TryReadLine

func (f *Filch) TryReadLine() ([]byte, error)

func (*Filch) Write

func (f *Filch) Write(b []byte) (int, error)

type Options

type Options struct {
	ReplaceStderr bool // dup over fd 2 so everything written to stderr comes here
}

Jump to

Keyboard shortcuts

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