{"id":13786715,"url":"https://github.com/goroute/route","last_synced_at":"2026-01-20T16:11:25.575Z","repository":{"id":57484960,"uuid":"195572798","full_name":"goroute/route","owner":"goroute","description":"Go Route - Simple yet powerful HTTP request multiplexer","archived":false,"fork":false,"pushed_at":"2019-12-23T20:20:48.000Z","size":295,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T20:39:43.302Z","etag":null,"topics":["go","golang","http","middleware","router"],"latest_commit_sha":null,"homepage":"https://goroute.github.io","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/goroute.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-06T18:47:38.000Z","updated_at":"2023-11-07T06:35:08.000Z","dependencies_parsed_at":"2022-08-26T11:11:04.045Z","dependency_job_id":null,"html_url":"https://github.com/goroute/route","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/goroute/route","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goroute%2Froute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goroute%2Froute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goroute%2Froute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goroute%2Froute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goroute","download_url":"https://codeload.github.com/goroute/route/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goroute%2Froute/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"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":["go","golang","http","middleware","router"],"created_at":"2024-08-03T19:01:30.510Z","updated_at":"2026-01-20T16:11:25.561Z","avatar_url":"https://github.com/goroute.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n    \n[![Build Status](https://travis-ci.com/goroute/route.svg?branch=master)](https://travis-ci.com/goroute/route)\n[![codecov](https://codecov.io/gh/goroute/route/branch/master/graph/badge.svg)](https://codecov.io/gh/goroute/route) \n[![GoDoc](https://godoc.org/github.com/goroute/route?status.svg)](http://godoc.org/github.com/goroute/route) \n[![Go Report Card](https://goreportcard.com/badge/github.com/goroute/route)](https://goreportcard.com/report/github.com/goroute/route)\n\n\u003c/div\u003e\n\n## Few main features\n\n* Minimal core.\n* No external runtime dependencies. Custom middlewares which requires 3th party dependecies are places in separates repositories under goroute org.\n* HTTP Routing.\n* Middlewares support.\n* Global error handling.\n\n## Getting Started\n\n### Prerequisites\n\nYou need to have at least go 1.11 installed on you local machine.\n\n### Installing\n\nInstall go route package with go get\n\n```\ngo get -u github.com/goroute/route\n```\n\nStart your first server. Create main.go file and add:\n```go\npackage main\n\nimport (\n    \"net/http\"\n    \"log\"\n    \"github.com/goroute/route\"\n)\n\ntype helloResponse struct {\n\tTitle string `json:\"title\"`\n}\n\nfunc main() {\n\tmux := route.NewServeMux()\n\t\n\tmux.Use(func(c route.Context, next route.HandlerFunc) error {\n\t    log.Println(\"Hello, Middleware!\")\n\t    return next(c)\n\t})\n\t\n\tmux.GET(\"/\", func(c route.Context) error {\n\t    return c.JSON(http.StatusOK, \u0026helloResponse{Title:\"Hello, JSON!\"})\n\t})\n\t\n\tlog.Fatal(http.ListenAndServe(\":9000\", mux))\n}\n\n```\n\nRun it\n\n```\ngo run main.go\n```\n\n## More examples\n\nSee [examples](https://github.com/goroute/route/tree/master/examples)\n\n## Built With\n\n* [Go](https://www.golang.org/)\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/goroute/route/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/goroute/route/tags). \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details\n\n## Acknowledgments\n\n* This project is largely inspired by [echo](https://echo.labstack.com/). Parts of the code are adopted from echo. See NOTICE. \n","funding_links":[],"categories":["路由","Web Frameworks","Web框架","Routers"],"sub_categories":["创建http中间件的代码库","Routers","路由器"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoroute%2Froute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoroute%2Froute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoroute%2Froute/lists"}