oops
samber/oops · Public GitHub repository
🔥 Error handling library with context, assertion, stack trace and source fragments
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
Transform your Go error handling from "oops!" to "aha!" moments
Oops is a comprehensive Go error handling library that provides structured error management with rich contextual information. It's designed as a drop-in replacement for Go's built-in error, adding powerful features like stack traces, source code fragments, structured attributes, and developer-friendly debugging hints.
Important: This is NOT a logging library. oops should complements your existing logging toolchain (zap, zerolog, logrus, slog, go-sentry...).
- 🔧 Drop-in Replacement: Seamlessly replaces standard Go error handling
- 📊 Rich Context: Add structured attributes, user info
- 🐛 Debug-Friendly: Out-of-the-box stacktraces and source code fragments
- 🔗 Error Chaining: Wrap and compose errors with additional context
- 🛡️ Panic Recovery: Built-in panic handling with error conversion
Requirements and intended audience
Transform your Go error handling from "oops!" to "aha!" moments
Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-11-05. Source: https://github.com/samber/oops/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2026-11-01. Saved release: v1.23.2 · 2026-09-14. These dates do not guarantee ongoing maintenance.
- Technologies
- Go
- Licence
- MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-23. This does not test every feature.
Browse related categories
More projects to explore
iptv
iptv-org/iptv
Collection of publicly available IPTV channels from all over the world
HowToLiveBetter
eternity4719/HowToLiveBetter
高性价比人生指南: 长寿防病、急救、省钱理财、法律红线、失业与工伤、医保社保、恋爱婚育、怀孕育儿、创业与做平台合规、出国与技能。每条写明成本、收益、证据等级和原始出处,只引期刊论文与官方文件。
OpenManus
FoundationAgents/OpenManus
No fortress, purely open ground. OpenManus is Coming.
JavaScript30
wesbos/JavaScript30
30 Day Vanilla JS Challenge