Skip to content
r.

oops

samber/oops · Public GitHub repository

🔥 Error handling library with context, assertion, stack trace and source fragments

Open project in RepoShelf

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.

oops live demo screenshot
Captured from the live demo · 2026-11-02

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...).

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