{"id":51535,"library":"bugsnag-panicwrap","title":"Bugsnag Panicwrap","description":"Package panicwrap provides functions for capturing and handling panics by re-executing the application and monitoring stderr.","status":"active","version":"1.3.4","language":"go","source_language":null,"source_url":"https://github.com/bugsnag/panicwrap","tags":["panic","error-handling","debugging","bugsnag"],"install":[{"cmd":"go get github.com/bugsnag/panicwrap","lang":"bash","label":"Install github.com/bugsnag/panicwrap"}],"dependencies":[],"imports":[{"symbol":"panicwrap","correct":"github.com/bugsnag/panicwrap"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/bugsnag/panicwrap\"\n)\n\nfunc main() {\n\texitStatus, err := panicwrap.BasicWrap(func(output string) {\n\t\tfmt.Println(\"Panic output:\", output)\n\t})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tif exitStatus >= 0 {\n\t\treturn\n\t}\n\t// Normal program execution\n\tfmt.Println(\"Running...\")\n}","lang":"go","description":"Wraps the program to capture panics."},"warnings":[{"fix":"Ensure the binary is accessible and no side effects from re-execution.","message":"Panicwrap re-executes the binary, which may cause issues with certain environments or flags.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'applic':17 'bugsnag':1,26 'captur':8 'debug':25 'error':23 'error-handl':22 'execut':15 'function':6 'handl':10,24 'monitor':19 'packag':3 'panic':11,21 'panicwrap':2,4 'provid':5 're':14 're-execut':13 'stderr':20","created_at":"2026-06-15T06:18:36.678177+00:00","updated_at":"2026-06-15T06:18:36.678177+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bugsnag/panicwrap","github":"https://github.com/bugsnag/panicwrap","docs":"https://pkg.go.dev/github.com/bugsnag/panicwrap#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}