{"id":18554691,"url":"https://github.com/yudwig/ermux","last_synced_at":"2025-05-15T12:08:59.030Z","repository":{"id":57598094,"uuid":"378783288","full_name":"yudwig/ermux","owner":"yudwig","description":"ermux is a minimal GO library for multi-error handling.","archived":false,"fork":false,"pushed_at":"2021-09-21T00:01:20.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T11:14:47.370Z","etag":null,"topics":["error-handling","go","golang","library"],"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/yudwig.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":"2021-06-21T02:19:29.000Z","updated_at":"2021-09-21T00:01:23.000Z","dependencies_parsed_at":"2022-08-29T23:51:32.707Z","dependency_job_id":null,"html_url":"https://github.com/yudwig/ermux","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudwig%2Fermux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudwig%2Fermux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudwig%2Fermux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yudwig%2Fermux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yudwig","download_url":"https://codeload.github.com/yudwig/ermux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337606,"owners_count":22054254,"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-handling","go","golang","library"],"created_at":"2024-11-06T21:23:27.155Z","updated_at":"2025-05-15T12:08:59.008Z","avatar_url":"https://github.com/yudwig.png","language":"Go","readme":"# ermux\n\nermux is a minimal GO library for multi-error handling.\n\n## Installation\n\n```sh\ngo get https://github.com/yudwig/ermux\n```\n\n## Usage\n\n* import \n```go\nimport(\n  \"github.com/yudwig/ermux\"\n)\n```\n\n* example \n\n```go\nerrs := make([]error, 3)\na, errs[0] = exec()\nb, errs[1] = exec()\nc, errs[2] = exec()\n\nif ermux.Some(errs) {\n    return ermux.First(errs)\n}\n```\n\n## Features\n\nermux simplify below code.\n\n```go\na, err = exec()\nif err != nil {\n    return err\n}\nb, err = exec()\nif err != nil {\n    return err\n}\nc, err = exec()\nif err != nil {\n    return err\n}\n```\n\n## Docs\n\nermux has only 4 functions.\n\n| I/F     |  description   |\n|:------------------------ |:------------------------------------------- |\n| **Some** ([]error) bool      | Returns true if input has some error(!= nil).  |\n| **First** ([]error) error    |  Returns the first error(!= nil) of input.  |\n| **Last** ([]error) error     | Returns the last error(!= nil) of input.  |\n| **Filter** ([]error) []error | Removes empty(= nil) elements from input error slice.|\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudwig%2Fermux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyudwig%2Fermux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudwig%2Fermux/lists"}