{"id":22256880,"url":"https://github.com/mountolive/minisafe","last_synced_at":"2025-03-25T13:09:37.021Z","repository":{"id":113831329,"uuid":"282740063","full_name":"mountolive/minisafe","owner":"mountolive","description":"Function wrapper for possibly panicking goroutines","archived":false,"fork":false,"pushed_at":"2020-10-14T10:18:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-05T20:04:34.820Z","etag":null,"topics":["go","goroutines"],"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/mountolive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-07-26T21:57:26.000Z","updated_at":"2024-06-19T07:59:30.948Z","dependencies_parsed_at":null,"dependency_job_id":"3a05fcd7-070a-4dce-924d-dc17e4e90f22","html_url":"https://github.com/mountolive/minisafe","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mountolive%2Fminisafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mountolive%2Fminisafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mountolive%2Fminisafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mountolive%2Fminisafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mountolive","download_url":"https://codeload.github.com/mountolive/minisafe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467622,"owners_count":20620216,"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":["go","goroutines"],"created_at":"2024-12-03T08:08:54.180Z","updated_at":"2025-03-25T13:09:36.999Z","avatar_url":"https://github.com/mountolive.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MINISAFE\nSafe net for panics inside goroutines.\nThis is a very raw port of [cookoo's](https://github.com/Masterminds/cookoo) safely.\n\n# Installation\n`go get github.com/mountolive/minisafe`\n\n# Usage\n\n```\npackage main\n\nimport (\n    \"errors\"\n    \"fmt\"\n\n    \"github.com/mountolive/minisafe\"\n)\nfunc main() {\n    // no params\n    minisafe.Go(routine)\n    // with params\n    msg := \"I will be passed on\"\n    minisafe.Go(func() {\n        routine(msg)\n    })\n}\n\nfunc routine(args...interface{}) {\n  fmt.Println(\"I'll run as a goroutine\")\n  panicker()\n}\n\nfunc panicker() {\n  panic(errors.New(\"I will panick\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmountolive%2Fminisafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmountolive%2Fminisafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmountolive%2Fminisafe/lists"}