Go Error Handling

Open-source Go projects categorized as Error Handling

Top 23 Go Error Handling Projects

Error Handling
  1. validator

    :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

    Project mention: Simplifying String Validation in Go: Introducing validatorgo | dev.to | 2024-11-14

    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.

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

    CodeRabbit logo
  3. errors

    Go error library with error portability over the network (by cockroachdb)

  4. eris

    Error handling library with readable stack traces and flexible formatting support πŸŽ† (by rotisserie)

    Project mention: Don't Return Err in Go | news.ycombinator.com | 2024-05-21

    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

  5. errorx

    A comprehensive error handling library for Go

  6. tracerr

    Golang errors with stack trace and source fragments.

  7. oops

    πŸ”₯ Error handling library with context, assertion, stack trace and source fragments

    Project mention: Don't Return Err in Go | news.ycombinator.com | 2024-05-21

    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

  8. errlog

    Reduce debugging time. Use static & stack-trace analysis to identify the error immediately.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. slog-multi

    🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

  11. data-structures

    Go datastructures. (by timtadh)

  12. emperror

    The Emperor takes care of all errors personally

  13. 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-19

    The 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 πŸ˜€!!

  14. fault

    Go errors but structured and composable. Fault provides an extensible yet ergonomic mechanism for wrapping errors. (by Southclaws)

  15. slog-formatter

    🚨 slog: Attribute formatting

  16. slog-gin

    🚨 Gin middleware for slog logger

  17. err2

    Automatic and modern error handling package for Go

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

  19. errors

    A simple error library that supports error stacks, error codes, and error chains. (by morrisxyang)

  20. problem-details

    ProblemDetails is a Error Handler base on [RFC 7807] standard to map our error to standardized error payload to client.

  21. slog-sentry

    🚨 slog: Sentry handler

  22. errors

    clear go error wrapping with caller (by go-faster)

  23. exception

    A simple utility package for exception handling with try-catch in Golang

  24. resperr

    Go package to associate status codes and messages with errors

  25. simplerr

    Advanced Go error handling, made simple

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Error Handling discussion

Log in or Post with

Go Error Handling related posts

  • A simplified version of Clean Arch

    2 projects | dev.to | 6 Jun 2024
  • Don't Return Err in Go

    2 projects | news.ycombinator.com | 21 May 2024
  • nao1215/csv - Read csv with validation in golang

    4 projects | dev.to | 11 May 2024
  • API completa em Golang - Parte 3

    2 projects | dev.to | 16 Dec 2023
  • errors alternatives - tracerr and err2

    3 projects | 6 Dec 2023
  • API validation in Gin: Ensuring Data Integrity in Your API

    1 project | dev.to | 10 Sep 2023
  • Yet another validator 0.9.5

    2 projects | /r/golang | 5 Sep 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 20 Mar 2025
    SaaSHub helps you find the best software and product alternatives Learn more β†’

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

Sponsored
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.
coderabbit.ai