{"id":31128904,"url":"https://github.com/golossus/routing","last_synced_at":"2025-12-15T00:29:21.583Z","repository":{"id":47070770,"uuid":"223991834","full_name":"golossus/routing","owner":"golossus","description":"A routing component for HTTP handing in Go","archived":false,"fork":false,"pushed_at":"2021-09-14T20:34:11.000Z","size":185,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-07-27T22:09:32.919Z","etag":null,"topics":["go","golang","http","mux","router"],"latest_commit_sha":null,"homepage":"https://www.golossus.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/golossus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-25T16:21:36.000Z","updated_at":"2021-09-14T20:34:14.000Z","dependencies_parsed_at":"2022-09-26T21:41:20.918Z","dependency_job_id":null,"html_url":"https://github.com/golossus/routing","commit_stats":null,"previous_names":["golossus/http-router"],"tags_count":7,"template":null,"template_full_name":null,"purl":"pkg:github/golossus/routing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golossus%2Frouting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golossus%2Frouting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golossus%2Frouting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golossus%2Frouting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/golossus","download_url":"https://codeload.github.com/golossus/routing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/golossus%2Frouting/sbom","scorecard":{"id":434920,"data":{"date":"2025-08-11","repo":{"name":"github.com/golossus/routing","commit":"456ee1f29fb8bfa43999b37c6b258d3168716fe7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Code-Review","score":8,"reason":"Found 25/30 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/golossus/routing/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/golossus/routing/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/golossus/routing/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/golossus/routing/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T04:22:30.401Z","repository_id":47070770,"created_at":"2025-08-19T04:22:30.401Z","updated_at":"2025-08-19T04:22:30.401Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275692962,"owners_count":25510885,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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":["go","golang","http","mux","router"],"created_at":"2025-09-18T01:16:59.405Z","updated_at":"2025-09-18T01:17:03.702Z","avatar_url":"https://github.com/golossus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ci workflow](https://github.com/golossus/routing/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/golossus/routing/branch/master/graph/badge.svg?token=R4RDS0JM4X)](https://codecov.io/gh/golossus/routing)\n[![Go Report Card](https://goreportcard.com/badge/github.com/golossus/routing)](https://goreportcard.com/report/github.com/golossus/routing)\n[![CodeFactor](https://www.codefactor.io/repository/github/golossus/routing/badge)](https://www.codefactor.io/repository/github/golossus/routing)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=golossus_routing\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=golossus_routing)\n\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.golossus.com\" target=\"_blank\"\u003e\n        \u003cimg height=\"100\" src=\"https://avatars2.githubusercontent.com/u/58183018\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n[Golossus][1] is a set of reusable **Go modules** to facilitate the creation of \nweb applications leveraging Go's standard packages, mainly **net/http**.\n\nThe routing module exposes a **Router** or commonly known as **Mux** to map urls to\nspecific handlers. It provides an enhanced set of features to improve default mux\ncapabilities:\n\n* Binary tree search for static routes.\n* Allows dynamic routes with parameters.\n* Parameter constraints matching.\n* Http verbs matching.\n* Semantic interface.\n* More to come...\n\nInstallation\n------------\n\nThe routing package is just a common Go module. You can install it as any other Go module. \nTo get more information just review the official [Go blog][2] regarding this topic.\n\nUsage\n-----\n\nThis is just a quick introduction, view the [GoDoc][3] for details.\n\nBasic usage example:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"net/http\"\n    \"log\"\n\n    \"github.com/golossus/routing\"\n)\n\nfunc Index(w http.ResponseWriter, r *http.Request) {\n    fmt.Fprint(w, \"Welcome!\\n\")\n}\n\nfunc Hello(w http.ResponseWriter, r *http.Request) {\n    ps := routing.GetURLParameters(r)\n    fmt.Fprintf(w, \"hello, %s!\\n\", ps.GetByName(\"name\"))\n}\n\nfunc main() {\n    router := routing.NewRouter()\n    router.Get(\"/\", Index)\n    router.Get(\"/hello/{name}\", Hello)\n\n    log.Fatal(http.ListenAndServe(\":8080\", router))\n}\n```\n\nDocumentation\n-------------\n\n[Official website][1] is still under construction and documentation is not yet finished. Stay\ntunned to discover things to come, or [subscribe to our newsletter][4] to get direct notifications. \n\nCommunity\n---------\n\n* Join our [Slack][5] to meet the community and get support.\n* Follow us on [GitHub][6].\n* Read our [Code of Conduct][7].\n\nContributing\n------------\n\nGolossus is an Open Source project. The Golossus team wants to enable it to be community-driven \nand open to [contributors][8]. Take a look at [contributing documentation][9].\n\nSecurity Issues\n---------------\n\nIf you discover a security vulnerability within Golossus, please follow our\n[disclosure procedure][10].\n\nAbout Us\n--------\n\nGolossus development is led by the Golossus Team [Leaders][12] and supported by [contributors][8]. \nIt started and supported as a **hackweek** project at [New Work SE][13], we can just say thank you!\n\n[1]: https://www.golossus.com\n[2]: https://blog.golang.org/using-go-modules\n[3]: http://godoc.org/github.com/golossus/routing\n[4]: mailto:subscribe@golossus.com\n[5]: https://join.slack.com/t/golossus/shared_invite/zt-db4brnes-M8q1Lw2ouFT5X~gQg69NQQ\n[6]: https://github.com/golossus\n[7]: ./CODE_OF_CONDUCT.md\n[8]: ./CONTRIBUTORS.md\n[9]: ./CONTRIBUTING.md\n[10]: ./CONTRIBUTING.md#reporting-a-security-issue\n[12]: ./CONTRIBUTING.md#leaders\n[13]: https://www.new-work.se/en/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolossus%2Frouting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgolossus%2Frouting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgolossus%2Frouting/lists"}