github.com/rhysd/go-fakeio (go): Package fakeio is a small library to fake stdout/stderr/stdin mainly for unit testing.  Following example fakes stdout/stderr/stdin. Set 'from stdin!' as stdin and get output from both stdout and stderr as string.  Please read example/example_test.go to see live examples.  If you find some bugs, please report it to repository page: https://github.com/rhysd/go-fakeio
Keywords: capture|fake|golang|stderr|stdin|stdout