GRD LogoGRD

Monadic Error Handling for Go

Eliminate verbose error checking and build readable, composable error-handling pipelines. Chain operations without explicit error checks using Go generics.

Quick Example

go

Why Choose GRD?

Simplify error handling in Go without sacrificing the language's principles. GRD makes your code more readable and maintainable.

🔗

Chainable Operations

Chain multiple operations without explicit error checks. Build readable pipelines.

Zero Dependencies

Pure Go implementation with no external dependencies. Lightweight and fast.

🔄

Generic Types

Full type safety with Go generics. Work with any type while maintaining safety.

🛡️

Error Short-Circuiting

Automatic error propagation through chains. Stop execution on first error.

🏁

Finally Blocks

Guaranteed cleanup execution regardless of success or failure.

📦

Easy Integration

Drop into existing codebases without breaking changes. Gradual adoption friendly.

Get Started in Minutes

Install GRD and start using monadic error handling in your Go projects right away.

1

Install the Package

Add GRD to your Go project using go get:

bash
2

Import and Use

Import GRD in your Go files and start chaining operations:

go
3

Explore Examples

Check out our comprehensive examples to learn advanced patterns and best practices.

View Examples

Complete Example

go