SaaSHub helps you find the best software and product alternatives Learn more β
Top 23 Go Error Handling Projects
-
validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Why not use popular Go libraries like Package validator or govalidator? While both libraries are well-known, validatorgo focuses on standalone string validation and provides an extensive collection of customizable validators inspired by validator.js, which neither of these Go libraries fully implement.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
-
eris
Error handling library with readable stack traces and flexible formatting support π (by rotisserie)
Golang error handling is terrible by default. The lack of sum types also make it hard to know what errors a function might return and libraries rarely wrap their errors. There also isnβt any stack trace by default which makes it hard to find the original source of the error.
Check out https://github.com/rotisserie/eris. It really is a lifesaver
-
-
-
I built a drop-in replacement to `error` recently. Instead of manipulating strings, it adds context, stacktrace... in a structured way.
https://github.com/samber/oops
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
slog-multi
π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
-
-
-
go-echo-templ-htmx
Go/Echo+Templ+Htmx: Full stack application using Golang's Echo framework & Templ templating language with user session management + CRUD to a SQLite database (To Do List) and HTMX in the frontend
Project mention: A minimalist password manager desktop app: a foray into Golang's Wails framework (Part 2) | dev.to | 2024-12-19The truth is that I had worked first with Vanilla Js and Vue, then with React, and even with that strange library that for many is HTMX (which I have to say that I love β€οΈ). But Svelte makes you fall in love from the beginning, and I have to say that it was while experimenting with Wails that I used it for the first time (and I promise to continue using itβ¦). But as comfortable as a web framework is, we must remind backend developers that the frontend is not that easy π!!
-
fault
Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors. (by Southclaws)
-
-
-
-
errors
A drop-in replacement for Go errors, with some added sugar! Unwrap user-friendly messages, HTTP status code, easy wrapping with multiple error types. (by naughtygopher)
-
errors
A simple error library that supports error stacks, error codes, and error chains. (by morrisxyang)
-
problem-details
ProblemDetails is a Error Handler base on [RFC 7807] standard to map our error to standardized error payload to client.
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go Error Handling discussion
Go Error Handling related posts
-
A simplified version of Clean Arch
-
Don't Return Err in Go
-
nao1215/csv - Read csv with validation in golang
-
API completa em Golang - Parte 3
-
errors alternatives - tracerr and err2
3 projects | 6 Dec 2023 -
API validation in Gin: Ensuring Data Integrity in Your API
-
Yet another validator 0.9.5
-
A note from our sponsor - SaaSHub
www.saashub.com | 20 Mar 2025
Index
What are some of the best open-source Error Handling projects in Go? This list will help you:
# | Project | Stars |
---|---|---|
1 | validator | 17,838 |
2 | errors | 2,171 |
3 | eris | 1,517 |
4 | errorx | 1,243 |
5 | tracerr | 1,070 |
6 | oops | 598 |
7 | errlog | 461 |
8 | slog-multi | 452 |
9 | data-structures | 418 |
10 | emperror | 349 |
11 | go-echo-templ-htmx | 269 |
12 | fault | 172 |
13 | slog-formatter | 162 |
14 | slog-gin | 146 |
15 | err2 | 73 |
16 | errors | 70 |
17 | errors | 56 |
18 | problem-details | 52 |
19 | slog-sentry | 48 |
20 | errors | 48 |
21 | exception | 35 |
22 | resperr | 23 |
23 | simplerr | 21 |