Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - ThundR67/falcon: A Simple Yet Highly Powerful Package For Error Handling

A Simple Yet Highly Powerful Package For Error Handling - ThundR67/falcon

Visit SiteGitHub - ThundR67/falcon: A Simple Yet Highly Powerful Package For Error Handling

GitHub - ThundR67/falcon: A Simple Yet Highly Powerful Package For Error Handling

A Simple Yet Highly Powerful Package For Error Handling - ThundR67/falcon

Powered by 0x5a.live ๐Ÿ’—

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

GoLang Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.