{"id":17306685,"url":"https://github.com/tcort/luhn","last_synced_at":"2025-03-26T23:44:04.684Z","repository":{"id":57606384,"uuid":"58174017","full_name":"tcort/luhn","owner":"tcort","description":"Simple go package that implements the Luhn algorithm","archived":false,"fork":false,"pushed_at":"2016-05-14T01:10:55.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T05:26:09.438Z","etag":null,"topics":["checker","credit-card","luhn","luhn-algorithm","validation"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcort.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-06T02:15:42.000Z","updated_at":"2017-02-15T13:47:40.000Z","dependencies_parsed_at":"2022-09-26T20:02:15.069Z","dependency_job_id":null,"html_url":"https://github.com/tcort/luhn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcort%2Fluhn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcort%2Fluhn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcort%2Fluhn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcort%2Fluhn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcort","download_url":"https://codeload.github.com/tcort/luhn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755604,"owners_count":20667027,"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":["checker","credit-card","luhn","luhn-algorithm","validation"],"created_at":"2024-10-15T11:59:05.691Z","updated_at":"2025-03-26T23:44:04.664Z","avatar_url":"https://github.com/tcort.png","language":"Go","readme":"# luhn\n\nSimple [go](https://golang.org/) package that implements the\n[Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm).\n\n## Installation\n\nThe latest and greatest version of this software is available at\n[github.com/tcort/luhn](https://github.com/tcort/luhn).\n\n    go get github.com/tcort/luhn\n\n## API\n\nFor complete API documentation, see [godoc.org/github.com/tcort/luhn](https://godoc.org/github.com/tcort/luhn)\n\n## Example Usage\n\nHere's a simple command line tool that accepts a number as a\ncommand line argument and reports whether or not it passed\nthe Luhn check:\n```\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/tcort/luhn\"\n    \"os\"\n)\n\nfunc main() {\n\n    if len(os.Args) != 2 {\n        fmt.Println(\"Usage: lc [number]\")\n        return\n    }\n\n    if luhn.Check(os.Args[1]) {\n        fmt.Println(\"The number passed the Luhn check\")\n    } else {\n        fmt.Println(\"The number failed the Luhn check\")\n    }\n}\n```\n\n## License\n\nSee [LICENSE.md](https://github.com/tcort/luhn/blob/master/LICENSE.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcort%2Fluhn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcort%2Fluhn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcort%2Fluhn/lists"}