Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestoreSTD ¶
type RestoreSTD struct {
// contains filtered or unexported fields
}
func RedirectStdToFiles ¶
func RedirectStdToFiles() (*RestoreSTD, error)
RedirectStdToFiles replaces stdout and stderr with file writers. The returned struct has functions to revert replacement of stdout and err with fs files.
func (*RestoreSTD) AddCallback ¶
func (r *RestoreSTD) AddCallback(f func())
func (*RestoreSTD) Restore ¶
func (r *RestoreSTD) Restore()
func (*RestoreSTD) Run ¶
func (r *RestoreSTD) Run(f func())
Click to show internal directories.
Click to hide internal directories.