Skip to main content
Version: v2.x


Skip middleware for Fiber that skips a wrapped handler if a predicate is true.


func New(handler fiber.Handler, exclude func(c *fiber.Ctx) bool) fiber.Handler


Import the middleware package that is part of the Fiber web framework

import (

After you initiate your Fiber app, you can use the following possibilities:

app.Use(skip.New(handler, func(ctx *fiber.Ctx) bool { return ctx.Method() == fiber.MethodOptions }))