{"id":37112936,"url":"https://github.com/jancajthaml-go/damm","last_synced_at":"2026-01-14T13:20:32.836Z","repository":{"id":54435049,"uuid":"99200774","full_name":"jancajthaml-go/damm","owner":"jancajthaml-go","description":"damm check-digit validator and generator","archived":false,"fork":false,"pushed_at":"2021-02-18T07:51:52.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-09-05T03:12:30.392Z","etag":null,"topics":["checkdigit","checksum","damm","digit"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jancajthaml-go.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":"2017-08-03T06:53:14.000Z","updated_at":"2021-02-18T07:51:54.000Z","dependencies_parsed_at":"2022-08-13T15:31:24.279Z","dependency_job_id":null,"html_url":"https://github.com/jancajthaml-go/damm","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/jancajthaml-go/damm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancajthaml-go%2Fdamm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancajthaml-go%2Fdamm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancajthaml-go%2Fdamm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancajthaml-go%2Fdamm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jancajthaml-go","download_url":"https://codeload.github.com/jancajthaml-go/damm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jancajthaml-go%2Fdamm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["checkdigit","checksum","damm","digit"],"created_at":"2026-01-14T13:20:32.221Z","updated_at":"2026-01-14T13:20:32.816Z","avatar_url":"https://github.com/jancajthaml-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## damm checksum algorithm\n\n[![Go Report Card](https://goreportcard.com/badge/jancajthaml-go/damm)](https://goreportcard.com/report/jancajthaml-go/damm)\n\n### Usage ###\n\n```\nimport \"github.com/jancajthaml-go/damm\"\n\nok := damm.Validate(\"00123014764700968325\")\n\ndigit, error := damm.Digit(\"x\")\n\nchecksum := damm.Generate(\"1\")\n```\n\n### Performance ###\n\n```\nBenchmarkDammSmall-4           500000000    3.80 ns/op   0 B/op   0 allocs/op\nBenchmarkDammLarge-4           50000000     38.5 ns/op   0 B/op   0 allocs/op\nBenchmarkDammSmallParallel-4   1000000000   2.09 ns/op   0 B/op   0 allocs/op\nBenchmarkDammLargeParallel-4   100000000    15.2 ns/op   0 B/op   0 allocs/op\n```\n\nverify your performance by running `make benchmark`\n\n### Resources ###\n\n* [Wikipedia - Damm algorithm](https://en.wikipedia.org/wiki/Damm_algorithm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjancajthaml-go%2Fdamm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjancajthaml-go%2Fdamm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjancajthaml-go%2Fdamm/lists"}