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 ¶
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.
Click to show internal directories.
Click to hide internal directories.
