{"id":44767325,"url":"https://github.com/unicod3/kargo","last_synced_at":"2026-02-16T04:09:50.333Z","repository":{"id":86519964,"uuid":"147896800","full_name":"unicod3/kargo","owner":"unicod3","description":"Kargo determines the carrier of a tracking number barcode and checks if that tracking number is valid","archived":false,"fork":false,"pushed_at":"2018-10-13T23:43:50.000Z","size":60,"stargazers_count":34,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T16:44:17.616Z","etag":null,"topics":["carrier","checksum-calculation","fedex","kargo","tracking-number","ups","usps"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unicod3.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":"2018-09-08T03:15:33.000Z","updated_at":"2024-01-19T10:25:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"04bbc5b0-3e07-45af-a813-1af243084437","html_url":"https://github.com/unicod3/kargo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/unicod3/kargo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicod3%2Fkargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicod3%2Fkargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicod3%2Fkargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicod3%2Fkargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicod3","download_url":"https://codeload.github.com/unicod3/kargo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicod3%2Fkargo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"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":["carrier","checksum-calculation","fedex","kargo","tracking-number","ups","usps"],"created_at":"2026-02-16T04:09:49.820Z","updated_at":"2026-02-16T04:09:50.328Z","avatar_url":"https://github.com/unicod3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Logo](https://png.icons8.com/color/32/000000/snail.png)Kargo \n[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/unicod3/kargo) [![Build Status](https://travis-ci.org/unicod3/kargo.svg?branch=master)](https://travis-ci.org/unicod3/kargo) [![Coverage Status](https://coveralls.io/repos/github/unicod3/kargo/badge.svg)](https://coveralls.io/github/unicod3/kargo)\n\nKargo determines carrier of the tracking number barcode and checks if that tracking number barcode is valid by matching the format and calculating checksum validity. Feel free to create pull requests and issues.\n\nPackage supports  \n- [x] UPS\n- [x] FedEx Express\n- [x] FedEx Ground \"96\"\n- [x] USPS IMpb\n- [x] USPS UPU S10\n- [x] USPS 20\n\nBut more on the way\n- [ ] DHL\n\n## Install\n\n```bash\ngo get github.com/unicod3/kargo\n```\n\n## Usage and Examples\n\nKargo's usage is pretty straight forward, supply a tracking number and get the Package struct\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/unicod3/kargo\"\n)\n\nfunc main() {\n\tpkg, err := kargo.Identify(\"1Z999AA10123456784\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\n\tvar trackingNumber string = pkg.TrackingNumber\n\tvar carrier string = pkg.Carrier\n\tvar isValid bool = pkg.IsValid\n\tfmt.Printf(\"Tracking Number: %v, Carrier: %v, Is Valid: %t\",\n\t\ttrackingNumber, carrier, isValid)\n}\n\n```\nOutput: `Tracking Number: 1Z999AA10123456784, Carrier: UPS, Is Valid: true`\n\nFor more examples please check out the test files.\n\n## Running the tests\n\nYou can run tests with standard test tool of Go:\n\n```bash\ngo test -v \n```\n\n## Changelog\n\nVersion 1.1.2\n   * Added support for USPS; IMpb, UPU S10, 20 character barcodes\n   * Removed the unnecessary prefix from filenames\n   * Improved the tests\n\nVersion 1.0.1\n   * Fix stringutils package dependency issue\n\nVersion 1.0.0\n   * Initial release\n\n\n## License\n\nGNU General Public License v3.0 - see [LICENSE](LICENSE) for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicod3%2Fkargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicod3%2Fkargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicod3%2Fkargo/lists"}