{"id":13694176,"url":"https://github.com/romanyx/erris","last_synced_at":"2026-01-28T01:22:26.042Z","repository":{"id":144204358,"uuid":"224213146","full_name":"romanyx/erris","owner":"romanyx","description":"Linter for errors.Is and errors.As","archived":false,"fork":false,"pushed_at":"2019-12-03T13:42:49.000Z","size":12,"stargazers_count":46,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-12T20:46:51.365Z","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/romanyx.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}},"created_at":"2019-11-26T14:36:04.000Z","updated_at":"2024-03-10T17:03:50.000Z","dependencies_parsed_at":"2023-06-18T15:35:46.326Z","dependency_job_id":null,"html_url":"https://github.com/romanyx/erris","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanyx%2Ferris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanyx%2Ferris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanyx%2Ferris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romanyx%2Ferris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romanyx","download_url":"https://codeload.github.com/romanyx/erris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252130402,"owners_count":21699083,"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":[],"created_at":"2024-08-02T17:01:26.014Z","updated_at":"2026-01-28T01:22:26.000Z","avatar_url":"https://github.com/romanyx.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library"],"sub_categories":["错误处理","Error Handling"],"readme":"# erris\n\nerris is a program for checking that errors are compared or type asserted using go1.13 `errors.Is` and `errors.As` functions.\n\n[![Build Status](https://travis-ci.org/romanyx/erris.png?branch=master)](https://travis-ci.org/romanyx/erris)\n[![Report](https://goreportcard.com/badge/github.com/romanyx/erris)](https://goreportcard.com/report/github.com/romanyx/erris)\n\n## Install\n\n```sh\ngo get -u github.com/romanyx/erris/cmd/erris\n```\n\n## Use\n\nFor basic usage, just give the package path of interest as the first argument:\n\n```sh\nerris github.com/romanyx/erris/testdata\n```\n\nOutputs:\n\n```sh\ngithub.com/romanyx/erris/testdata/main.go:14:5:\tuse errors.Is to compare an error\ngithub.com/romanyx/erris/testdata/main_test.go:11:14:\tuse errors.As to type assert an error\n```\n\nTo check all packages beneath the current directory:\n\n```\nerris ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanyx%2Ferris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanyx%2Ferris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanyx%2Ferris/lists"}