{"id":46946569,"url":"https://github.com/ohir/bitpeek","last_synced_at":"2026-03-11T07:36:18.044Z","repository":{"id":57588658,"uuid":"144157197","full_name":"ohir/bitpeek","owner":"ohir","description":"Bitpeek in Go - make bits human readable.","archived":false,"fork":false,"pushed_at":"2018-08-16T19:46:38.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T19:45:49.013Z","etag":null,"topics":["bitflags","format-bits","go","golang","human-readable-bits"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohir.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}},"created_at":"2018-08-09T13:36:04.000Z","updated_at":"2019-06-08T14:50:45.000Z","dependencies_parsed_at":"2022-09-26T19:42:52.895Z","dependency_job_id":null,"html_url":"https://github.com/ohir/bitpeek","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ohir/bitpeek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohir%2Fbitpeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohir%2Fbitpeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohir%2Fbitpeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohir%2Fbitpeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohir","download_url":"https://codeload.github.com/ohir/bitpeek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohir%2Fbitpeek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: 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":["bitflags","format-bits","go","golang","human-readable-bits"],"created_at":"2026-03-11T07:36:14.524Z","updated_at":"2026-03-11T07:36:17.785Z","avatar_url":"https://github.com/ohir.png","language":"Go","readme":"## Bitpeek. Human readable bits.\n\n`import \"github.com/ohir/bitpeek\"`\n\n### Overview\n\nBitpacked data pretty-formatter.\n\nEvery single input bit from 0 to 63 can print a label that show this bit state.\nArbitrary group of bits can be printed as decimal, octal or hex numbers and as\nC32s, Ascii7b or UTF8 characters. Plus as an IPv4 address in dot-notation.\n\nPackage has no dependencies and is faster than fmt.Sprintf used for identical output.\n\n\nTaste it:\n\n``` go\nvar header uint64 = 0xAfdfDeadBeef4d0e\n\nprintln(string(bitpeek.Snap(\n  `'Type:'F 'EXT=.ACK= Id:0xFHH from IPv4.Address32@:D.16@\\n`,header)))\n\t\n// Output:\n// Type:5 ext.ACK Id:0x7DF from 222.173.190.239:19726\n\t\n// Benchmark:   277 ns/op  64 B/op 1 allocs/op     (Sprintf: 862 ns/op)\n```\n\n### Easy Format String\n\n\t    (excerpt)\t\n\t? - show bitlabel with digit 0 or 1 in place of ?\n\t\u003e - show bitlabel - only if bit is SET\n\t\u003c - show bitlabel - only if bit is UNSET\n\t= - show bitlabel in lowercase if bit is UNSET  \n\tD - Decimal number\n\tH - Hex digit: 0..F\n\tC - Character (utf8)\n\tI - IPv4 address\n\n\n### Documentation\n\n[Documentation](http://godoc.org/github.com/ohir/bitpeek) is hosted at GoDoc project.\n\n[Linter docs too](http://godoc.org/github.com/ohir/bplint).\n\n\n### Install\n\nInstall package:\n\n`go get -u github.com/ohir/bitpeek`\n\nInstall linter:\n\n`go get -u github.com/ohir/bplint`\n\n\n### Revisions\n\n  - v1.0.1 - test file annotated for linter, minor cleanups\n  - v1.0.0 - first public release\n\n* Travis and coverage badges. \n\n\n### License\n\nMIT. See LICENSE file.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohir%2Fbitpeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohir%2Fbitpeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohir%2Fbitpeek/lists"}