{"id":16464514,"url":"https://github.com/deatil/go-exception","last_synced_at":"2026-05-26T16:34:22.050Z","repository":{"id":109371586,"uuid":"477228070","full_name":"deatil/go-exception","owner":"deatil","description":"go panic异常拦截处理","archived":false,"fork":false,"pushed_at":"2022-05-02T06:00:04.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T10:29:13.983Z","etag":null,"topics":["catch","go","go-exception","panic","try"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deatil.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":"2022-04-03T03:27:34.000Z","updated_at":"2022-04-03T14:26:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f56b6bf1-8e25-4a5b-af9d-585a291a6e9d","html_url":"https://github.com/deatil/go-exception","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-exception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-exception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-exception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deatil%2Fgo-exception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deatil","download_url":"https://codeload.github.com/deatil/go-exception/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014025,"owners_count":19894182,"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":["catch","go","go-exception","panic","try"],"created_at":"2024-10-11T11:28:25.325Z","updated_at":"2026-05-26T16:34:22.005Z","avatar_url":"https://github.com/deatil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 异常处理\n\n\n### 下载安装\n\n~~~go\ngo get -u github.com/deatil/go-exception\n~~~\n\n\n### 使用\n\n~~~go\npackage main\n\nimport \"github.com/deatil/go-exception/exception\"\n\nexception.\n    Try(func() {\n        panic(\"exception error\")\n    }).\n    Catch(func(e exception.Exception) {\n        fmt.Println(e.GetMessage())\n    })\n\n~~~\n\n\n### 开源协议\n\n*  本软件包遵循 `Apache2` 开源协议发布，在保留本软件包版权的情况下提供个人及商业免费使用。\n\n\n### 版权\n\n*  本软件包所属版权归 deatil(https://github.com/deatil) 所有。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fgo-exception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeatil%2Fgo-exception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeatil%2Fgo-exception/lists"}