{"id":20760336,"url":"https://github.com/vanng822/recovery","last_synced_at":"2026-04-20T08:02:14.505Z","repository":{"id":29876509,"uuid":"33421791","full_name":"vanng822/recovery","owner":"vanng822","description":"Recovery is a middleware for recovering from panic","archived":false,"fork":false,"pushed_at":"2015-05-05T07:23:20.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T09:44:41.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/vanng822.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}},"created_at":"2015-04-04T21:58:13.000Z","updated_at":"2015-05-05T07:23:20.000Z","dependencies_parsed_at":"2022-09-06T13:40:08.853Z","dependency_job_id":null,"html_url":"https://github.com/vanng822/recovery","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vanng822/recovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Frecovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Frecovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Frecovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Frecovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/recovery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Frecovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":[],"created_at":"2024-11-17T10:13:12.750Z","updated_at":"2026-04-20T08:02:14.430Z","avatar_url":"https://github.com/vanng822.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Recovery\n\nRecovery is a middleware for recovering from panic with interfaces func(next http.Handler) http.Handler and func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)\n\n## Example\n\n```go\t\npackage main\n\nimport (\n    \"github.com/vanng822/r2router\"\n    \"github.com/vanng822/recovery\"\n    \"net/http\"\n)\n\nfunc main() {\n    seefor := r2router.NewSeeforRouter()\n    rec := recovery.NewRecovery()\n    rec.PrintStack = true\n    seefor.Before(rec.Handler)\n\tseefor.Get(\"/user/keys/:id\", func(w http.ResponseWriter, r *http.Request, _ r2router.Params) {\n\t\tpanic(\"This shouldn't crash Seefor\")\n\t})\n\t\n    http.ListenAndServe(\":8080\", seefor)\n}\n```\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Frecovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Frecovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Frecovery/lists"}