Registry / testing / kami-zh-go-capturer

kami-zh-go-capturer

JSON →
library0.0.0-20171211120116-e492ea43421dgogounverified

Capture stdout and stderr output from Go functions for testing.

go get github.com/kami-zh/go-capturer
INSTALL
IMPORT
SIG · KAMI-ZH-GO-CAPTURE
K
kami-zh-go-capturer
testinggov0.0.0-20171211120116-e492ea43421d
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/kami-zh/go-capturer

Capture stdout from a function.

package main import ( "fmt" "github.com/kami-zh/go-capturer" ) func main() { out := capturer.CaptureStdout(func() { fmt.Print("hello") }) fmt.Println(out) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20171211120116-e492ea43421dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
kami-zh-go-capturer — go get kami-zh-go-capturer · libregistry