Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
srahkmli authored Dec 30, 2024
1 parent 0e23cd4 commit 63d5c82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# panicrecovery
# Go Panic Proof

`panicrecovery` is a Go package that provides middleware for recovering from panics in both HTTP and gRPC servers. This middleware helps ensure that server doesn't crash when an unexpected panic occurs, logging the error and providing an appropriate response.
`go-panic-proof` is a Go package that provides middleware for recovering from panics in both HTTP and gRPC servers. This middleware helps ensure that server doesn't crash when an unexpected panic occurs, logging the error and providing an appropriate response.

## Features

Expand All @@ -14,8 +14,8 @@ Stack Trace:
goroutine 10 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x88
github.com/srahkmli/panicrecovery.RecoverInterceptor.func1(0x1f7cae0, 0x0, 0x1f7cae0, 0x0, 0x7fddc35d19b0)
/project/panicrecovery/grpc.go:23 +0xd3
github.com/srahkmli/go-panic-proof.RecoverInterceptor.func1(0x1f7cae0, 0x0, 0x1f7cae0, 0x0, 0x7fddc35d19b0)
/project/go-panic-proof/grpc.go:23 +0xd3
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0004db5e0, 0x7fddc35d1928, 0x1f9b960, 0xc0004d7030, 0xc00023bc00, 0x1f7cb80, 0x0, 0x0, 0x0)
/project/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1281 +0x45b
...
Expand All @@ -24,10 +24,10 @@ google.golang.org/grpc.(*Server).processUnaryRPC(0xc0004db5e0, 0x7fddc35d1928, 0

## Installation

To install the `panicrecovery` package, run the following command in Go project:
To install the `go-panic-proof` package, run the following command in Go project:

```bash
go get github.com/srahkmli/panicrecovery
go get github.com/srahkmli/go-panic-proof
```
## Overview

Expand Down

0 comments on commit 63d5c82

Please sign in to comment.