{"id":36470329,"url":"https://github.com/po3rin/gocovercounter","last_synced_at":"2026-01-12T00:35:45.238Z","repository":{"id":61625500,"uuid":"187375878","full_name":"po3rin/gocovercounter","owner":"po3rin","description":"gocovercounter lets you to generate coverage-annotated source.","archived":false,"fork":false,"pushed_at":"2019-05-20T03:57:01.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T05:13:10.146Z","etag":null,"topics":["counter","coverage","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/po3rin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-18T15:43:29.000Z","updated_at":"2024-06-20T05:13:10.147Z","dependencies_parsed_at":"2022-10-19T18:45:37.808Z","dependency_job_id":null,"html_url":"https://github.com/po3rin/gocovercounter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/po3rin/gocovercounter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/po3rin%2Fgocovercounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/po3rin%2Fgocovercounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/po3rin%2Fgocovercounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/po3rin%2Fgocovercounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/po3rin","download_url":"https://codeload.github.com/po3rin/gocovercounter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/po3rin%2Fgocovercounter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28329805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:13:06.322Z","status":"ssl_error","status_checked_at":"2026-01-12T00:04:50.725Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["counter","coverage","go"],"created_at":"2026-01-12T00:35:44.657Z","updated_at":"2026-01-12T00:35:45.231Z","avatar_url":"https://github.com/po3rin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocovercounter\n\ngocovercounter lets you to generate coverage-annotated source.\ncode is Roughly mirror of golang/go/src/cmd/cover/cover.go.\n\n## Quick Start\n\nuse package as CLI.\n\n```bash\n$ go get -u github.com/po3rin/gocovercounter/cmd/coco\n$ coco ./testdata/testfile.go\n```\n\ncoco outputs following. this code is coverage-annotated source.\n\n```go\n//line ./testdata/testfile.go:1\npackage testfile\n\nimport (\n\t\"bufio\"\n\t\"fmt\"\n\t\"os\"\n)\n\nfunc Testfile() {GoCover.Count[0] = 1;\n\tfmt.Println(\"text: \")\n\tstdin := bufio.NewScanner(os.Stdin)\n\tstdin.Scan()\n\ttext := stdin.Text()\n\n\tif text != \"hello\" {GoCover.Count[2] = 1;\n\t\treturn\n\t}\n\tGoCover.Count[1] = 1;fmt.Println(\"hello\")\n}\n\nvar GoCover = struct {\n\tCount     [3]uint32\n\tPos       [3 * 3]uint32\n\tNumStmt   [3]uint16\n} {\n\tPos: [3 * 3]uint32{\n\t\t9, 15, 0x150011, // [0]\n\t\t18, 18, 0x160002, // [1]\n\t\t15, 17, 0x30015, // [2]\n\t},\n\tNumStmt: [3]uint16{\n\t\t5, // 0\n\t\t1, // 1\n\t\t1, // 2\n\t},\n}\n\n```\n\nIf you use ```-o``` flag, coco creates output file.\n\n```\n$ coco -o out.txt ./testdata/testfile.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpo3rin%2Fgocovercounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpo3rin%2Fgocovercounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpo3rin%2Fgocovercounter/lists"}