{"id":70136,"library":"zenizh-go-capturer","title":"go-capturer","description":"A Go library for capturing stdout and stderr output for testing or logging purposes.","status":"active","version":"0.0.0-20211219060012-52ea6c8fed04","language":"go","source_language":null,"source_url":"https://github.com/zenizh/go-capturer","tags":["testing","logging","capture","stdout"],"install":[{"cmd":"go get github.com/zenizh/go-capturer","lang":"bash","label":"Install github.com/zenizh/go-capturer"}],"dependencies":[],"imports":[{"symbol":"capturer","correct":"github.com/zenizh/go-capturer"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/zenizh/go-capturer\"\n)\n\nfunc main() {\n\tout := capturer.CaptureStdout(func() {\n\t\tfmt.Println(\"Hello, World!\")\n\t})\n\tfmt.Println(\"Captured:\", out)\n}","lang":"go","description":"Capture stdout output from a function."},"warnings":[],"env_vars":null,"search_vec":"'captur':3,8,20 'go':2,5 'go-captur':1 'librari':6 'log':16,19 'output':12 'purpos':17 'stderr':11 'stdout':9,21 'test':14,18","created_at":"2026-06-17T18:10:03.727595+00:00","updated_at":"2026-06-17T18:10:03.727595+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/zenizh/go-capturer","github":"https://github.com/zenizh/go-capturer","docs":"https://pkg.go.dev/github.com/zenizh/go-capturer#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}