{"id":26950465,"url":"https://github.com/reedchan7/errx","last_synced_at":"2025-04-02T23:29:32.083Z","repository":{"id":257827772,"uuid":"872891628","full_name":"reedchan7/errx","owner":"reedchan7","description":"errx is a simple and easy to use error handling library.","archived":false,"fork":false,"pushed_at":"2024-10-15T08:55:22.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-16T04:58:45.524Z","etag":null,"topics":["error","error-handling","stacktrace"],"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/reedchan7.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":"2024-10-15T08:53:23.000Z","updated_at":"2024-10-15T08:54:54.000Z","dependencies_parsed_at":"2024-10-16T04:58:49.482Z","dependency_job_id":"6da58f31-9079-46af-b036-c58b86896797","html_url":"https://github.com/reedchan7/errx","commit_stats":null,"previous_names":["reedchan7/errx"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedchan7%2Ferrx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedchan7%2Ferrx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedchan7%2Ferrx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reedchan7%2Ferrx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reedchan7","download_url":"https://codeload.github.com/reedchan7/errx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246910099,"owners_count":20853512,"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":["error","error-handling","stacktrace"],"created_at":"2025-04-02T23:29:31.666Z","updated_at":"2025-04-02T23:29:32.072Z","avatar_url":"https://github.com/reedchan7.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# errx\n\n`errx` is a more modern and convenient error handling library, providing more user-friendly stacktrace:\n\n\n# Install\n\n```shell\ngo get github.com/reedchan7/errx\n```\n\n\n# Quick Start\n\n```go\nerr := errx.New(\"oops: something wrong :(\")\nerr = errx.Wrap(err, \"failed to do something\")\nfmt.Printf(\"%+v\\n\", err)\n```\n\n# Example\n\n```go\nerr := errx.NewInternalServerError().New(\"failed to do something\")\nerr = errx.Wrap(err, \"oops: :(\")\nerr = errx.Wrapf(err, \"xxxxxxx\")\nfmt.Printf(\"%+v\\n\", err)\n```\n\nResult:\n```text\n500: Internal Server Error: xxxxxxx: oops: :(: failed to do something\n  Thrown: failed to do something\n    --- at /home/user/go/pkg/errx/errx_test.go:17 TestCode1()\n  Thrown: oops: :(\n    --- at /home/user/go/pkg/errx/errx_test.go:18 TestCode1()\n  Thrown: xxxxxxx\n    --- at /home/user/go/pkg/errx/errx_test.go:19 TestCode1()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedchan7%2Ferrx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freedchan7%2Ferrx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freedchan7%2Ferrx/lists"}