{"id":18438282,"url":"https://github.com/pumpkinseed/cage","last_synced_at":"2025-04-07T20:35:28.224Z","repository":{"id":93534369,"uuid":"219477037","full_name":"PumpkinSeed/cage","owner":"PumpkinSeed","description":"Simple library to catch stdout/stderr in Go","archived":false,"fork":false,"pushed_at":"2019-11-04T12:57:38.000Z","size":8,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T22:01:52.527Z","etag":null,"topics":["golang-library","stdout","testing","testing-tool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PumpkinSeed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-04T10:40:03.000Z","updated_at":"2024-04-17T18:03:09.000Z","dependencies_parsed_at":"2023-04-07T17:32:31.353Z","dependency_job_id":null,"html_url":"https://github.com/PumpkinSeed/cage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Fcage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Fcage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Fcage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Fcage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PumpkinSeed","download_url":"https://codeload.github.com/PumpkinSeed/cage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247726369,"owners_count":20985880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang-library","stdout","testing","testing-tool"],"created_at":"2024-11-06T06:19:25.517Z","updated_at":"2025-04-07T20:35:23.216Z","avatar_url":"https://github.com/PumpkinSeed.png","language":"Go","readme":"# Cage\n\nSimple library to catch stdout/stderr in Go.\n\n#### Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"github.com/PumpkinSeed/cage\"\n)\n\nfunc main() {\n    c := cage.Start()\n    \n    fmt.Println(\"test\")\n    fmt.Println(\"test2\")\n    fmt.Fprintln(os.Stderr, \"stderr error\")\n    \n    cage.Stop(c)\n    fmt.Println(c.Data)\n    // [test, test2, stderr error]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpkinseed%2Fcage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpumpkinseed%2Fcage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpkinseed%2Fcage/lists"}