{"id":53323,"library":"johncgriffin-overflow","title":"Overflow","description":"Provides checked integer arithmetic operations that panic or return errors on overflow.","status":"active","version":"0.0.0-20211019200055-46fa312c352c","language":"go","source_language":null,"source_url":"https://github.com/JohnCGriffin/overflow","tags":["integer","overflow","safety","math","utility"],"install":[{"cmd":"go get github.com/JohnCGriffin/overflow","lang":"bash","label":"Install github.com/JohnCGriffin/overflow"}],"dependencies":[],"imports":[{"symbol":"overflow","correct":"github.com/JohnCGriffin/overflow"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/JohnCGriffin/overflow\"\n)\n\nfunc main() {\n\tsum, ok := overflow.Add(1<<62, 1<<62)\n\tif !ok {\n\t\tfmt.Println(\"overflow detected\")\n\t} else {\n\t\tfmt.Println(\"sum:\", sum)\n\t}\n}","lang":"go","description":"Demonstrates safe addition with overflow detection."},"warnings":[],"env_vars":null,"search_vec":"'arithmet':5 'check':3 'error':11 'integ':4,14 'math':17 'oper':6 'overflow':1,13,15 'panic':8 'provid':2 'return':10 'safeti':16 'util':18","created_at":"2026-06-15T07:35:35.648430+00:00","updated_at":"2026-06-15T07:35:35.648430+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/JohnCGriffin/overflow","github":"https://github.com/JohnCGriffin/overflow","docs":"https://pkg.go.dev/github.com/JohnCGriffin/overflow#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}}