MCPcopy
hub / github.com/gofiber/fiber / RegisterCustomConstraint

Method RegisterCustomConstraint

app.go:855–857  ·  view source on GitHub ↗

RegisterCustomConstraint allows to register custom constraint.

(constraint CustomConstraint)

Source from the content-addressed store, hash-verified

853
854// RegisterCustomConstraint allows to register custom constraint.
855func (app *App) RegisterCustomConstraint(constraint CustomConstraint) {
856 app.customConstraints = append(app.customConstraints, constraint)
857}
858
859// RegisterCustomBinder Allows to register custom binders to use as Bind().Custom("name").
860// They should be compatible with CustomBinder interface.

Callers 1

Calls

no outgoing calls

Tested by 1