Skip to content
Trilha

Error catalog

E_NO_MIDDLEWARE_FUNC

middleware.go has no Middleware function

The scanner found middleware.go but no Middleware function, so nothing runs before the subtree.

Fix

Name the handler Middleware and call next.

func Middleware(c *trilha.Ctx, next trilha.Next) error { return next() }