github.com/samber/oops

oops

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

74

Decision Signals

Health score 74/100, confidence 75/100.

Strong
Maintenance 90
Adoption 43
Security 92
Maturity 62
Developer DX 83
Confidence 75

Install

go get github.com/samber/oops

Package Data

updated May 28, 2026
Latest versionv1.22.0
Imported by332 packages
Stars0
Forks0
Last activity1 day ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

131 symbols
SymbolKindSynopsis
OopsError Type type OopsError struct{}
AsOops Function func AsOops(err error) (OopsError, bool)
OopsError.Code Method func (o OopsError) Code() any
OopsError.Context Method func (o OopsError) Context() map[string]any
OopsError.Domain Method func (o OopsError) Domain() string
OopsError.Duration Method func (o OopsError) Duration() time.Duration
OopsError.Error Method func (o OopsError) Error() string
OopsError.Format Method func (o OopsError) Format(s fmt.State, verb rune)
OopsError.HasTag Method func (o OopsError) HasTag(tag string) bool
OopsError.Hint Method func (o OopsError) Hint() string
OopsError.Is Method func (o OopsError) Is(err error) bool
OopsError.Layers Method func (o OopsError) Layers() []*OopsErrorLayer

Similar Packages

Go Logging Libraries

#1 Zap

Package zap provides fast, structured, leveled logging.

Go Logging Libraries 24.5K stars 119.7K imported-by 100% confidence
97

#2 phuslu/log

Fastest structured logging

Go Logging Libraries 859 stars 343 imported-by 100% confidence
91

#3 Zerolog

Package zerolog provides a lightweight logging library dedicated to JSON logging.

Go Logging Libraries 12.4K stars 30.5K imported-by 100% confidence
91

#4 Logrus

Package logrus is a structured logger for Go, completely API compatible with the standard library logger.

Go Logging Libraries 25.7K stars 0 imported-by 65% confidence
89

#5 log

Go Logging Libraries 0 stars 3.2K imported-by 75% confidence
74