Integrations · Go framework

Pagerless for Gin

One middleware, after Gin's recovery and before your routes.

Set up

go get github.com/lcbasu/pagerless-go/gin@v0.2.0
import pagerlessgin "github.com/lcbasu/pagerless-go/gin"

pagerless.Init("")
defer pagerless.Close(context.Background())

r := gin.New()
r.Use(gin.Recovery(), pagerlessgin.Middleware())

What it catches

  • Panics and 5xx responses, per Gin route.
  • A heartbeat and a deploy marker from the core SDK.

Questions

Is the core still dependency-free?

Yes. Each adapter is its own module, so you only download Gin's adapter if you use Gin.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect