106 Repositories
Go error-handling Libraries
Go package simplifies nullable fields handling using Go Generics.
Go Nullable with Generics Go package simplifies nullable fields handling with Go Generics. Package gonull provides a generic Nullable type for handlin
Golang ergonomic declarative generics module inspired by Rust, including Result, Option, and more.
gust Golang ergonomic declarative generics module inspired by Rust. Go Version go≥1.18 Features Result Avoid if err != nil, handle result with chain m
Wrap contains a method for wrapping one Go error with another.
Note: this code is still in alpha stage. It works but it may change subtly in the near future, depending on what comes out of golang/go#52607. Wrap.Wi
Simple Go package for handling incoming requests in batches.
What it can be used for? To increase database-driven web application throughput without sacrificing data consistency and data durability or making sou
A simple program to automatically backup a database using git. Err handling by Sentry, Reporting by Betteruptime. Made with 🩸 , 😓 & 😭
backup What is this? A Simple program to automatically backup a database using git. Err handling by Sentry, Uses heartbeats by Betteruptime Made with
Gin-errorhandling - Gin Error Handling Middleware is a middleware for the popular Gin framework
Gin Error Handling Middleware Gin Error Handling Middleware is a middleware for
Errr - Errr (The Rich Structured Error Package missing from Go)
The errr package was created to fill the gap between error handling and error reporting.
Monitor pipe progress via output to standard error.
Pipe Monitor Monitor pipe progress via output to standard error. Similar to functionality provided by the Pipe Viewer (pv) command, except this comman
Try - Idiomatic monadic-ish error handling for go
Try Idiomatic monadic-ish error handling for go. Examples import
This structured Error package wraps errors with context and other info
RErr package This structured Error package wraps errors with context and other info. It can be used to enrich logging, for example with a structured l
Error handling hook & helper function to simplify writing API handler methods in Go.
Error handling hook & helper function to simplify writing API handler methods in Go.
Simple, intuitive and effective error handling for Go
Error Handling with eluv-io/errors-go The package eluv-io/errors-go makes Go error handling simple, intuitive and effective. err := someFunctionThatCa
Errors - A lib for handling error gracefully in Go
🔧 Errors Errors 是一个用于优雅地处理 Go 中错误的库。 Read me in English 🙋 功能特性 优雅地处理 error,嗯,
Simple golang error handling with classification primitives.
Errors Package errors provides simple golang error and classification primitives. Class Interfaces Error Handling Example Links Class The package defi
Simple and efficient error package
Errors Simple error package for Go with minimal allocation and high performance. Optimized to keep error on function stack. Motivation I found out tha
A Simple Yet Highly Powerful Package For Error Handling
Falcon Minimal And Efficient Error Handling In Go Simple Example errHandler := falcon.NewErrorHandler() errHandler.AddHandler(func(err error, data ..
A tiny cross-platform Go library to hide/unhide files and directories
higgs A tiny cross-platform Go library to hide or unhide files and directories Installation $ go get github.com/dastoori/higgs Usage package main imp
If I were a malicious actor, how would I sneak my code in?
go-error-hijack-poc This repo demonstrates a hypothetical use of sentinel errors and horizontally off-screen code as attack vectors. How to Run Run th
Small package which wraps error responses to follow jsonapi.org
Go-JsonError Go-JsonError is meant to allow us to easily create json response errors that follow the JsonApi spec. Json API Spec Usuage In order to us
An experimental Go package that allows you to write less error handling and makes the logic look simpler and clearer
An experimental Go package that allows you to write less error handling and makes the logic look simpler and clearer
Key event handling library for tcell - THIS IS A MIRROR - SEE LINK BELOW
cbind Key event handling library for tcell Features Set KeyEvent handlers Encode and decode KeyEvents as human-readable strings Usage // Create a new
Diag - Auto Diagdnosis error log for golang
Diag 1:自动诊断产品日志中的报错信息,进行知识库比对,并给出解决方案 \n 2:prometheus 本地数据 api 拉取展示,应对 sm0.2 版本或
Errhandle - A golang error handling framework
errhandle A golang error handling framework About errhandle: An error handling f
Spaniel - Time span handling for Go
Spaniel Time span handling for Go Spaniel contains functionality for timespan handling, specifically for merging overlapping timespans and finding the
Handling shapechanging json in go.
digjson Handling shapechanging json in go. Purpose There quite a few great libraries for Go when handling JSON, however, handling json that might chan
retry call until no error
Repeater Repeater calls a function until it returns no error, up to some number of iterations and delays defined by strategy. It terminates immediatel
ErrorGroup is an error type that can hold other errors together.
Error Group ErrorGroup is an error type that can hold other errors together. Installation go get -u github.com/txgruppi/errorgroup Why? Sometimes I h
High performance, type safe, concurrency limiting worker pool package for golang!
GOWP Package gowp (Go Worker-Pool) provides concurrency limiting, error propagation, and Context cancellation for a group of workers/goroutines. Featu
A lightweight API middleware for Julien Schmidt's router: cors, logging, and standardized error handling
go-api-router Lightweight API httprouter middleware: cors, logging, and standardized error handling. Table of Contents Installation Documentation Exam
A basic module for understanding functions, error handling, arrays, maps, unit testing, and compiling
Learning Go Basics Concepts A basic module for understanding functions, error handling, arrays, maps, unit testing, and compiling go mod init download
This Go package provides a sandbox for the safe execution of panic-inducing programs
go-safe This Go package provides a sandbox for the safe execution of panic-inducing programs. This package is intended for use in development and unit
Utility class for handling slices
Utility class for handling slices. Install go get -u github.com/leaanthony/slicer Quick Start import "github.com/leaanthony/slicer" func test() {
Small package for handling Github App authentication
githubapp A small Go package for handling authentication with a Github App using owner login and repository names instead of UUIDs. Installations and
A very simple utility that allows you to run the desired command or script as soon as a certain process with a known PID completes correctly or with an error.
go-monkill A very simple utility that allows you to run the desired command or script as soon as a certain process with a known PID completes correctl
Wraps the normal error and provides an error that is easy to use with net/http.
Go HTTP Error Wraps the normal error and provides an error that is easy to use with net/http. Install go get -u github.com/cateiru/go-http-error Usage
Error-safe value caster for golang
Caster Error-safe value caster. NewCaster Create new caster instance from value. // Signature NewCaster(data interface{}) Caster // Example import "g
Golang Rich Error, for having better visibility when things don't work as expected.
Rich Error Why we need better error handling? the error messages in go are ugly and very hard to read, also they don't give us much data about what ex
Package varflag implements command-line flag parsing into vars.Variables for easy type handling with additional flag types.
varflag Package flag implements command-line flag parsing into vars.Variables for easy type handling with additional flag types. varflag Flags String
gevent imply go-event which tries to make event handling easier.
gevent imply go-event which tries to make event handling easier. What does gevent want to do Async execute jobs safely without too many go routines. S
🥷 CError (Custom Error Handling)
🥷 CError (Custom Error Handling) Installation Via go packages: go get github.com/rozturac/cerror Usage Here is a sample CError uses: import ( "gi
GOWS is GoLang web-socket module Provides you with ease of handling web socket connections with a few lines
GOWS GOWS is GoLang web-socket module Provides you with ease of handling web socket connections with a few lines, it supports multi-connection on one
Golang advanced error usage with stack tracing
UhOh Golang advanced error usage with stack tracing uhoh consists of 3 parts: Original error Description of error Stack trace File Function Line Usage
Example of using advanced gRPC error model
grpcerrors Example of using advanced gRPC error model
ApolloError compliant error function for gqlgen
gqlgen-apollo-error ApolloError compliant error function for gqlgen Installation $ go get -u github.com/s-ichikawa/gqlgen-apollo-error Quickstart Retu
An API for handling file meta data
dp-files-api An API for handling file meta data Getting started Run make debug Dependencies No further dependencies other than those defined in go.mod
A very simple Golang server handling basic GET and POST requests
GOLANG SERVER INTRO As a true Blockchain enthusiast, I had to learn Solidity and Golang to participate to several projects. This repository consists o
Just another error handling primitives for golang
errors Just another error handling primitives for golang Install go install github.com/WAY29/errors@latest Usage New error and print error context Th
A Git RPC service for handling all the git calls made by GitLab
Quick Links: Roadmap | Want to Contribute? | GitLab Gitaly Issues | GitLab Gitaly Merge Requests | Gitaly is a Git RPC service for handling all the gi
Error interface wrappers for Google's errdetails protobuf types, because they're handy as heck and I want to use them more
Error interface wrappers for Google's errdetails protobuf types, because they're handy as heck and I want to use them more
Tiny Go tool for running multiple functions concurrently and collecting their results into an error slice.
Overview Short for "ConCurrent". Tiny Go tool for running multiple functions concurrently and collecting their results into an error slice. Dependency
Go linter that checks types that are json encoded - reports unsupported types and unnecessary error checks
Checks types passed to the json encoding functions. Reports unsupported types and reports occations, where the check for the returned error can be omited.
brief: a piece of error handling codelet
brief a piece of error handling codelet. this code only demonstrates how to hide sql.ErrNoRows to the caller. the Get() method defined in the pkg/proj
Go server for handling WebSub, supporting custom implementations of content providers.
Go WebSub Server A Go implementation of a WebSub server. See examples/main.go for a basic example which uses boltdb and a simple publisher. Importing:
Go extract error codes
go-extract-error-codes Overview This library helps to extract possible error codes from configured go-restful applications quality level: PoC High Lev
GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.
GoTrue is a small open-source API written in Golang, that can act as a self-standing API service for handling user registration and authentication for Jamstack projects.
handling 1M websockets connections in Go
Going Infinite, handling 1M websockets connections in Go This repository holds the complete implementation of the examples seen in Gophercon Israel ta
The Golang linter that checks that there is no simultaneous return of `nil` error and an invalid value.
nilnil Checks that there is no simultaneous return of nil error and an invalid value. Installation & usage $ go install github.com/Antonboom/nilnil@la
Generic error handling with panic, recover, and defer.
Generic error handling with panic, recover, and defer.
StaticBackend is a simple backend server API handling user mgmt, database, storage and real-time component
StaticBackend is a simple backend that handles user management, database, file storage, forms, and real-time experiences via channel/topic-based communication for web and mobile applications.
Set of reusable components for Golang projects
go-utils Table of contents go-utils Table of contents 1. Overview 2. Install 3. Utils package 3.1 logger 3.2 error 3.3 datetime 1. Overview In my free
Declarative error handling for Go.
ErrorFlow Declarative error handling for Go. Motivation Reading list: Don't defer Close() on writable files Error Handling — Problem Overview Proposal
mini tools handling migrasion database from cli
mini tools handling migrasion database from cli
Simple Kubernetes operator for handling echo CRDs 🤖
echoperator 🤖 Simple Kubernetes operator for handling echo CRDs. Kubernetes operator pattern implementation using the client-go library. Altough ther
Package shapes provides an algebra for handling shapes
About Package shapes provides the algebra and machinery for dealing with the metainformation of shapes of a tensor. Why a shape package? The shape pac
RPC over libp2p pubsub with error handling
go-libp2p-pubsub-rpc RPC over libp2p pubsub with error handling Table of Contents Background Install Usage Contributing Changelog License Background g
YTask is an asynchronous task queue for handling distributed jobs in golang
YTask is an asynchronous task queue for handling distributed jobs in golang
go-playground-converter is formatter error response inspiration like express-validator in nodejs build on top go-playground-validator.
Go Playground Converter go-playground-converter is formatter error response inspiration like express-validator in nodejs build on top in go-playground
harvest Go errors with ease
Pears Harvest Go Errors with Ease Introduction Pears helps reduce the boilerplate and ensure correctness for common error-handling scenarios: Panic re
A powerful, custom error package for Go
custom-error-go A powerful, custom error package for Go Detailed explanation: https://medium.com/codealchemist/error-handling-in-go-made-more-powerful
SLOs, Error windows and alerts are complicated. Here an attempt to make it easy
slo-computer SLOs, Error windows and alerts are complicated. Here's an attempt to make it easy SLO, burn_rate, error_rate, budget_spend are convoluted
Handling Google Authenitcator codes.
gotp Handling Google Authenticator codes in your terminal Getting started Grab the binary The quickest way to get set up is to download the latest bin
A Go linter to check that errors from external packages are wrapped
Wrapcheck A simple Go linter to check that errors from external packages are wrapped during return to help identify the error source during debugging.
😴 A tiny library for handling system interrupts
Wait a bit Tiny library for manage you application shutdown in graceful way by catching the OS signals. Documentation Installation go get -u github.co
reasonable handling of nullable values
null import "gopkg.in/guregu/null.v4" null is a library with reasonable options for dealing with nullable SQL and JSON values There are two packages:
Go error library with error portability over the network
cockroachdb/errors: Go errors with network portability This library aims to be used as a drop-in replacement to github.com/pkg/errors and Go's standar
handling 1M websockets connections in Go
Going Infinite, handling 1M websockets connections in Go This repository holds the complete implementation of the examples seen in Gophercon Israel ta
egg - the simple error aggregator
egg - the simple error aggregator egg ingests errors and aggregates them egg has 1st class support for sentry SDKs so you dont have to change any code
Tool to populate your code with traceable and secure error codes
Essential part of any project, especially customer facing is proper and secure error handling. When error happens and customer reports it, it would be nice to know the context of the error and where it exactly occured.
Data validation, cleaning and error collection for golang
GoForms - form data validation, cleaning and error reporting The goforms library is a proof-of-concept for a data validation, cleaning and error colle
Typo/error resilient, human-readable token generator
toktok A human-friendly token generator Creates tokens which avoid characters that can be easily misinterpreted, like '1' and 'I' or '8' and 'B', as w
errcheck checks that you checked errors.
errcheck errcheck is a program for checking for unchecked errors in go programs. Install go get -u github.com/kisielk/errcheck errcheck requires Go 1
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Package validator Package validator implements value validations for structs and individual fields based on tags. It has the following unique features
An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
ozzo-validation Description ozzo-validation is a Go package that provides configurable and extensible data validation capabilities. It has the followi
Address handling for Go.
address Handles address representation, validation and formatting. Inspired by Google's libaddressinput. Backstory: https://bojanz.github.io/address-h
A secure image proxy server
go-camo Contents About How it works Differences from Camo Installing pre-built binaries Building Running Running on Heroku Securing an installation Co
A Go package for handling common HTTP JSON responses.
go-respond A Go package for handling common HTTP JSON responses. Installation go get github.com/nicklaw5/go-respond Usage The goal of go-respond is to
:speedboat: a limited consumer goroutine or unlimited goroutine pool for easier goroutine handling and cancellation
Package pool Package pool implements a limited consumer goroutine or unlimited goroutine pool for easier goroutine handling and cancellation. Features
A sync.WaitGroup with error handling and concurrency control
go-waitgroup How to use An package that allows you to use the constructs of a sync.WaitGroup to create a pool of goroutines and control the concurrenc
A safe way to execute functions asynchronously, recovering them in case of panic. It also provides an error stack aiming to facilitate fail causes discovery.
Async Provides a safe way to execute functions asynchronously, recovering them in case of panic. It also provides an error stack aiming to facilitate
A pure Go game engine
Oak A pure Go game engine Table of Contents Installation Motivation Features Support Quick Start Implementation and Examples Finished Games Installati
Currency handling for Go.
currency Handles currency amounts, provides currency information and formatting. Powered by CLDR v38, in just ~30kb of data. Backstory: https://bojanz
a tool for handling file uploads simple
baraka a tool for handling file uploads for http servers makes it easier to make operations with files from the http request. Contents Install Simple
A flexible error support library for Go
errors Please see http://godoc.org/github.com/spacemonkeygo/errors for info License Copyright (C) 2014 Space Monkey, Inc. Licensed under the Apache Li
Hierarchical errors reporting done right in Golang
Hierarchical errors made right Hate seeing error: exit status 128 in the output of programs without actual explanation what is going wrong? Or, maybe,
Error tracing and annotation.
errors -- import "github.com/juju/errgo" The errors package provides a way to create and diagnose errors. It is compatible with the usual Go error idi
Golang errors with stack trace and source fragments.
Golang Errors with Stack Trace and Source Fragments Tired of uninformative error output? Probably this will be more convenient: Example package main
A Go (golang) package for representing a list of errors as a single error.
go-multierror go-multierror is a package for Go that provides a mechanism for representing a list of error values as a single error. This allows a fun
A comprehensive error handling library for Go
Highlights The errorx library provides error implementation and error-related utilities. Library features include (but are not limited to): Stack trac
A drop-in replacement for Go errors, with some added sugar! Unwrap user-friendly messages, HTTP status code, easy wrapping with multiple error types.
Errors Errors package is a drop-in replacement of the built-in Go errors package with no external dependencies. It lets you create errors of 11 differ
Simple error handling primitives
errors Package errors provides simple error handling primitives. go get github.com/pkg/errors The traditional error handling idiom in Go is roughly ak