{"id":13786716,"url":"https://github.com/ngamux/ngamux","last_synced_at":"2026-01-16T18:18:35.119Z","repository":{"id":43268736,"uuid":"398751145","full_name":"ngamux/ngamux","owner":"ngamux","description":"Simple HTTP router for Go","archived":false,"fork":false,"pushed_at":"2024-06-04T11:20:13.000Z","size":132,"stargazers_count":65,"open_issues_count":0,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T19:10:02.061Z","etag":null,"topics":["go","hacktoberfest","http"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngamux.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":"2021-08-22T08:31:40.000Z","updated_at":"2024-06-04T11:18:59.000Z","dependencies_parsed_at":"2022-08-22T16:00:27.024Z","dependency_job_id":"a6be349c-7995-417c-8240-8855633e45a1","html_url":"https://github.com/ngamux/ngamux","commit_stats":{"total_commits":191,"total_committers":5,"mean_commits":38.2,"dds":0.09424083769633507,"last_synced_commit":"99c1c61945cc528095198bdf44057bdd5940ae76"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngamux%2Fngamux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngamux%2Fngamux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngamux%2Fngamux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngamux%2Fngamux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngamux","download_url":"https://codeload.github.com/ngamux/ngamux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225105768,"owners_count":17421791,"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":["go","hacktoberfest","http"],"created_at":"2024-08-03T19:01:30.530Z","updated_at":"2026-01-16T18:18:30.069Z","avatar_url":"https://github.com/ngamux.png","language":"Go","funding_links":[],"categories":["Routers","Web Frameworks","Web框架"],"sub_categories":["HTTP Clients","Routers","路由器"],"readme":"# ngamux\nSimple HTTP router for Go\n\n[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/ngamux/ngamux.svg)](https://github.com/ngamux/ngamux)\n[![GoDoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/ngamux/ngamux)\n[![GoReportCard](https://goreportcard.com/badge/github.com/ngamux/ngamux)](https://goreportcard.com/report/github.com/ngamux/ngamux)\n[![Coverage Status](https://codecov.io/gh/ngamux/ngamux/branch/master/graph/badge.svg?token=7ORUPOWS3I)](https://codecov.io/gh/ngamux/ngamux)\n---\n\n* [Installation](#installation)\n* [Examples](#examples)\n* [Provided Middlewares](#provided-middlewares)\n* [License](#license)\n\n---\n\n# Installation\nRun this command with correctly configured Go toolchain.\n```bash\ngo get github.com/ngamux/ngamux\n```\n\n# Examples\n```go\npackage main\n\nimport(\n  \"net/http\"\n  \"github.com/ngamux/ngamux\"\n)\n\nfunc main() {\n  mux := ngamux.New()\n  mux.Get(\"/\", func(rw http.ResponseWriter, r *http.Request) error {\n    return ngamux.Res(rw).\n      Status(http.StatusOK).\n      Json(ngamux.Map{\n        \"message\": \"welcome!\",\n      })\n  })\n  \n  http.ListenAndServe(\":8080\", mux)\n}\n```\n\nSee more [examples](https://github.com/ngamux/ngamux-example)!\n\n# Provided Middlewares\n* [CORS](https://github.com/ngamux/middleware/tree/master/cors)\n* [Recover](https://github.com/ngamux/middleware/tree/master/recover)\n* [File Upload](https://github.com/ngamux/middleware/tree/master/fileupload)\n* [Log](https://github.com/ngamux/middleware/tree/master/log)\n* [Auth JWT](https://github.com/ngamux/middleware/tree/master/authjwt)\n* [No Cache](https://github.com/ngamux/middleware/tree/master/nocache)\n* [Ping](https://github.com/ngamux/middleware/tree/master/ping)\n* [Redirect](https://github.com/ngamux/middleware/tree/master/redirect)\n\n# License\nThis project is licensed under the [Mozilla Public License 2.0](https://github.com/ngamux/ngamux/blob/master/LICENSE).\n\n# Contributors\nThanks to all contributors!\n\n[![Contributors](https://contrib.rocks/image?repo=ngamux/ngamux)](https://github.com/ngamux/ngamux/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngamux%2Fngamux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngamux%2Fngamux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngamux%2Fngamux/lists"}