MCPcopy
hub / github.com/labstack/echo / Group

Method Group

echo.go:730–734  ·  view source on GitHub ↗

Group creates a new router group with prefix and optional group-level middleware.

(prefix string, m ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

728
729// Group creates a new router group with prefix and optional group-level middleware.
730func (e *Echo) Group(prefix string, m ...MiddlewareFunc) (g *Group) {
731 g = &Group{prefix: prefix, echo: e}
732 g.Use(m...)
733 return
734}
735
736// PreMiddlewares returns registered pre middlewares. These are middleware to the chain
737// which are run before router tries to find matching route.

Calls 1

UseMethod · 0.45