{"id":13817467,"url":"https://github.com/oxequa/grace","last_synced_at":"2025-08-19T14:10:50.430Z","repository":{"id":57484181,"uuid":"123841792","full_name":"oxequa/grace","owner":"oxequa","description":"Handle Go recover, panic, and errors in a graceful way. Multiple errors support, basic filters and custom handlers.","archived":false,"fork":false,"pushed_at":"2018-03-30T10:16:21.000Z","size":31,"stargazers_count":235,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-13T19:45:35.568Z","etag":null,"topics":["error-handling","go","go-library","go-tools","golang","golang-package","golang-wrapper"],"latest_commit_sha":null,"homepage":"https://grace.oxequa.com","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/oxequa.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":"2018-03-05T00:12:16.000Z","updated_at":"2025-02-28T03:02:14.000Z","dependencies_parsed_at":"2022-08-26T13:23:10.416Z","dependency_job_id":null,"html_url":"https://github.com/oxequa/grace","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/oxequa/grace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxequa%2Fgrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxequa%2Fgrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxequa%2Fgrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxequa%2Fgrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxequa","download_url":"https://codeload.github.com/oxequa/grace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxequa%2Fgrace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271166323,"owners_count":24710464,"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-08-19T02:00:09.176Z","response_time":63,"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":["error-handling","go","go-library","go-tools","golang","golang-package","golang-wrapper"],"created_at":"2024-08-04T06:00:44.846Z","updated_at":"2025-08-19T14:10:50.377Z","avatar_url":"https://github.com/oxequa.png","language":"Go","funding_links":[],"categories":["Misc"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/8b6ngnu.png\" width=\"125px\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.org/oxequa/grace\"\u003e\u003cimg src=\"https://img.shields.io/travis/oxequa/grace.svg?style=flat-square\" alt=\"Build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/oxequa/grace\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/oxequa/grace?style=flat-square\" alt=\"GoReport\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://godoc.org/github.com/oxequa/grace\"\u003e\u003cimg src=\"http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square\" alt=\"GoDoc\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/oxequa/grace/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/aur/license/yaourt.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://gitter.im/oxequa/grace?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"\u003e\u003cimg src=\"https://img.shields.io/gitter/room/oxequa/grace.svg?style=flat-square\" alt=\"Gitter\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003chr\u003e\n\u003ch3 align=\"center\"\u003eHandle recover, panic and errors in a graceful way\u003c/h3\u003e\n\u003chr\u003e\n\n## Quickstart\n\n```\ngo get github.com/oxequa/grace\n```\n\nThe following is a simple example that handles a panic and returns the error without the program crash.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/oxequa/grace\"\n)\n\nfunc example() (e error){\n  defer grace.Recover(\u0026e) // save recover error and stack trace to e\n  numbers := []int{1, 2}\n  fmt.Println(numbers[3]) // panic out of index\n  return\n}\n\nfunc main() {\n  err := example() // no panic occur\n  fmt.Println(err)\n  fmt.Println(\"End\")\n}\n```\n\n## Documentation\n\nYou can read the full documentation of Grace [here](https://grace.oxequa.com).\n\n## Contributing\n\nPlease read our guideline [here](CONTRIBUTING.md).\n\n## License\n\nGrace is licensed under the [GNU GENERAL PUBLIC LICENSE V3](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxequa%2Fgrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxequa%2Fgrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxequa%2Fgrace/lists"}