skip.go — fiber Source File
Architecture documentation for skip.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d76d3d0e_b708_d595_8fab_ce67617467b8["skip.go"] 6604ba6b_bab7_17c7_e687_7d0f07080e5a["v3"] d76d3d0e_b708_d595_8fab_ce67617467b8 --> 6604ba6b_bab7_17c7_e687_7d0f07080e5a style d76d3d0e_b708_d595_8fab_ce67617467b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package skip
import (
"github.com/gofiber/fiber/v3"
)
// New returns a middleware that calls the provided predicate for each request.
// If the predicate evaluates to true the wrapped handler is skipped and the next
// handler in the chain is executed.
func New(handler fiber.Handler, exclude func(c fiber.Ctx) bool) fiber.Handler {
if exclude == nil {
return handler
}
return func(c fiber.Ctx) error {
if exclude(c) {
return c.Next()
}
return handler(c)
}
}
Domain
Subdomains
Functions
Dependencies
- v3
Source
Frequently Asked Questions
What does skip.go do?
skip.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Adapters subdomain.
What functions are defined in skip.go?
skip.go defines 1 function(s): New.
What does skip.go depend on?
skip.go imports 1 module(s): v3.
Where is skip.go in the architecture?
skip.go is located at middleware/skip/skip.go (domain: FiberCore, subdomain: Adapters, directory: middleware/skip).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free