Awesome Go

Falcon

CategoryError Handling
SubcategoryError Handling
Stars0

A Simple Yet Highly Powerful Package For Error Handling

About Falcon

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

Frequently Asked Questions

What is Falcon?

Falcon is a Error Handling library for the Go programming language. A Simple Yet Highly Powerful Package For Error Handling

How do I install Falcon?

Install Falcon with the Go module system using `go get SonicRoshan/falcon`. Check the repository for the current installation instructions.

What category does Falcon belong to?

Falcon is listed under Error Handling, specifically Error Handling.

← Back to Error Handling