{"id":20384590,"url":"https://github.com/schultz-is/rtnutil","last_synced_at":"2026-04-19T01:34:52.379Z","repository":{"id":144228184,"uuid":"318356703","full_name":"schultz-is/rtnutil","owner":"schultz-is","description":"Utilities for working with ABA RTNs.","archived":false,"fork":false,"pushed_at":"2020-12-05T09:51:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-03-04T23:13:29.185Z","etag":null,"topics":["aba","banking","routing-number","rtn"],"latest_commit_sha":null,"homepage":"","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/schultz-is.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}},"created_at":"2020-12-04T00:25:22.000Z","updated_at":"2021-04-18T08:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"e078e08e-882b-49ef-b78a-b706bfe14a42","html_url":"https://github.com/schultz-is/rtnutil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schultz-is/rtnutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultz-is%2Frtnutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultz-is%2Frtnutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultz-is%2Frtnutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultz-is%2Frtnutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schultz-is","download_url":"https://codeload.github.com/schultz-is/rtnutil/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schultz-is%2Frtnutil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"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":["aba","banking","routing-number","rtn"],"created_at":"2024-11-15T02:28:37.858Z","updated_at":"2026-04-19T01:34:52.342Z","avatar_url":"https://github.com/schultz-is.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rtnutil\n\n![Test](https://github.com/schultz-is/rtnutil/workflows/Test/badge.svg)\n[![GoDoc](https://godoc.org/github.com/schultz-is/rtnutil?status.svg)](https://pkg.go.dev/github.com/schultz-is/rtnutil)\n[![Go Report Card](https://goreportcard.com/badge/github.com/schultz-is/rtnutil)](https://goreportcard.com/report/github.com/schultz-is/rtnutil)\n[![License](https://img.shields.io/github/license/schultz-is/rtnutil)](./LICENSE)\n\nThis package provides utilities for working with American Bankers Association\nrouting transit numbers; also known as ABA RTNs.\n\nMore information about the composition, structure, and usage of ABA RTNs can be\nfound on the relevant Wikipedia page[^1].\n\n[^1]: https://en.wikipedia.org/wiki/ABA_routing_transit_number\n\n## Installation\n\nTo install as a dependency in a go project:\n\n```console\ngo get github.com/schultz-is/rtnutil\n```\n\n## Usage\n\n### Validating an RTN\n\nThe format and checksum of an RTN can be validated via the `Validate`\npackage-level function. Note that a successful result from this function does\nnot necessarily mean that the RTN is assigned and in use!\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/schultz-is/rtnutil\"\n)\n\nfunc main() {\n  err := rtnutil.Validate(\"044000037\")\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(\"RTN is valid!\")\n}\n```\n\n### Calculating a missing RTN digit\n\nIn the case where an RTN is missing a check digit or one of the digits is\nillegible, it is possible to calculate the missing digit by replacing the\nmissing digit with an \"X\" and passing it to the `GetMissingDigit` function.\nOnly a single missing digit can be calculated this way, and the RTN provided\nmust be missing exactly one digit.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/schultz-is/rtnutil\"\n)\n\nfunc main() {\n  missingDigit, err := rtnutil.GetMissingDigit(\"04400003X\")\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Printf(\"the missing digit is %d\", missingDigit)\n}\n```\n\n## Testing\n\nUnit tests can be run and test coverage can be viewed via the provided\nMakefile.\n\n```console\nmake test\nmake coverage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultz-is%2Frtnutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschultz-is%2Frtnutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschultz-is%2Frtnutil/lists"}