Registry / testing / zenizh-go-capturer

zenizh-go-capturer

JSON →
library0.0.0-20211219060012-52ea6c8fed04gogounverified

A Go library for capturing stdout and stderr output for testing or logging purposes.

go get github.com/zenizh/go-capturer
INSTALL
IMPORT
SIG · ZENIZH-GO-CAPTURER
Z
zenizh-go-capturer
testinggov0.0.0-20211219060012-52ea6c8fed04
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

capturer
✓ github.com/zenizh/go-capturer

Capture stdout output from a function.

package main import ( "fmt" "github.com/zenizh/go-capturer" ) func main() { out := capturer.CaptureStdout(func() { fmt.Println("Hello, World!") }) fmt.Println("Captured:", out) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20211219060012-52ea6c8fed04latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
Resources
zenizh-go-capturer — go get zenizh-go-capturer · libregistry