package
Version:
v0.17.2
Opens a new window with list of versions in this module.
Published: Apr 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package getstdout captures os.Stdout and os.Stderr while executing a specified
function, returning the captured output afterwards.
func Stdouterr(f func()) string
Stdouterr runs function f and then returns the output from stdout and
stderr as a string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.