stdfd

package module
v0.0.0-...-4fe428f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: BSD-3-Clause Imports: 4 Imported by: 0

README

stdfd Build Status

Package stdfd provides routines for redirecting stdout and stderr: http://godoc.org/github.com/facebookgo/stdfd

Documentation

Overview

Package stdfd provides routines for redirecting stdout and stderr.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedirectOutputs

func RedirectOutputs(stdout, stderr string) error

RedirectOutputs (os.Stdout & os.Stderr) if necessary. There are some special implications here:

- Both arguments are paths.

- Blank arguments are ignored (that is, no redirection is performed).

- If paths are the same they are redirected to the same file descriptor.

- Parent directories are created if necessary.

- Target file is created if necessary (will be appended to if exists).

Types

This section is empty.

Jump to

Keyboard shortcuts

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