Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture redirects the provided file's file descriptor (typically os.Stderr) to a pipe, allowing all output written to that file descriptor to be captured. It returns a function that, when called, restores the original file descriptor, closes the pipe, and returns the captured output as a string. This is useful for capturing and inspecting output during tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.