Popularity
0.9
Growing
Activity
3.2
Declining
4
2
0

Programming language: Go
Tags: Error Handling    
Latest version: v1.0.0

Falcon alternatives and similar packages

Based on the "Error Handling" category

Do you think we are missing an alternative of Falcon or a related project?

Add another 'Error Handling' Package

README

Go Report Card GoDoc GoCover

Falcon

Minimal And Efficient Error Handling In Go

Simple Example

errHandler := falcon.NewErrorHandler()

errHandler.AddHandler(func(err error, data ...interface{}) interface{} {
    fmt.Println("Generic Error Occured")
    return SomeData
})

errHandler.AddHandler(func(err error, data ...interface{}) interface{} {
    fmt.Println("Error Of Type CustomErrorType Occured")
    return SomeData
}, CustomErrorType{})

SomeData := errHandler.Check(err, SomeRandomData1, SomeRandomData2)
// Data passed after the err will be passed to handlers