{"id":27951461,"url":"https://github.com/flier/hexdump","last_synced_at":"2026-07-06T05:32:53.190Z","repository":{"id":281464690,"uuid":"943782269","full_name":"flier/hexdump","owner":"flier","description":"Dump binary content as an ASCII table in Golang","archived":false,"fork":false,"pushed_at":"2025-03-09T08:40:49.000Z","size":1728,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T05:54:01.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/flier.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,"zenodo":null}},"created_at":"2025-03-06T09:00:28.000Z","updated_at":"2025-03-09T08:39:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c64a5722-f3e0-4e4d-b4e5-2848dcf9eb2d","html_url":"https://github.com/flier/hexdump","commit_stats":null,"previous_names":["flier/hexdump"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/flier/hexdump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fhexdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fhexdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fhexdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fhexdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flier","download_url":"https://codeload.github.com/flier/hexdump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fhexdump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35179683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-05-07T16:17:11.756Z","updated_at":"2026-07-06T05:32:53.179Z","avatar_url":"https://github.com/flier.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexdump [![build](https://github.com/flier/hexdump/actions/workflows/ci.yml/badge.svg)](https://github.com/flier/hexdump/actions/workflows/ci.yml) [![Document](https://pkg.go.dev/badge/github.com/flier/hexdump)](https://pkg.go.dev/github.com/flier/hexdump) [![License](https://img.shields.io/github/license/flier/hexdump)](/LICENSE) [![Release](https://img.shields.io/github/release/flier/hexdump.svg)](https://github.com/flier/hexdump/releases/latest)\n\nDump binary content as an ASCII table in Golang.\n\n## Install\n\n```sh\ngo get github.com/flier/hexdump\n```\n\n## Examples\n\nDump string, slices, stream, any value or pointer to value.\n\n### String\n\n```go\nhexdump.String(\"Hello, World!\")\n// Output:\n// 00000000  48 65 6c 6c 6f 2c 20 57  6f 72 6c 64 21           |Hello, World!   |\n```\n\n### Slices\n\n```go\nhexdump.Slices([]uint16{0x0123, 0x4567, 0x89AB, 0xCDEF}, hexdump.TwoBytesHex, hexdump.LittleEndian)\n// Output:\n// 00000000     0123    4567    89ab    cdef                                  |#.gE....        |\n```\n\n### Stream\n\n```go\nb := fnv.New128().Sum([]byte(\"Hello, World!\"))\n\nhexdump.Stream(bytes.NewBuffer(b))\n// Output:\n// 00000000  48 65 6c 6c 6f 2c 20 57  6f 72 6c 64 21 6c 62 27  |Hello, World!lb'|\n// 00000010  2e 07 bb 01 42 62 b8 21  75 62 95 c5 8d           |....Bb.!ub...   |\n```\n\n### Value\n\n```go\nhexdump.Value(complex128(3.14))\n// Output:\n// 00000000  1f 85 eb 51 b8 1e 09 40  00 00 00 00 00 00 00 00  |...Q...@........|\n```\n\n### Structure\n\n```go\ntype UDP struct {\n    SrcPort uint16\n    DstPort uint16\n    Length  uint16\n    Chksum  uint16\n}\n\nhtons := func(v uint16) uint16 {\n    var b [2]byte\n\n    binary.NativeEndian.PutUint16(b[:], v)\n\n    return binary.BigEndian.Uint16(b[:])\n}\n\nudp := \u0026UDP{\n    SrcPort: htons(0x1234),\n    DstPort: htons(0x5678),\n    Length:  htons(0x9abc),\n    Chksum:  htons(0xdef0),\n}\n\nhexdump.Deref(udp)\n// Output:\n// 00000000  12 34 56 78 9a bc de f0                           |.4Vx....        |\n```\n\n## License\n\n[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), see [LICENSE](LICENSE) for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fhexdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflier%2Fhexdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fhexdump/lists"}