package
Version:
v0.29.0
Opens a new window with list of versions in this module.
Published: Nov 13, 2023
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.