Add implements Echo#Add()
for sub-routes within the Group. Panics on error.
Rest
...middleware: MiddlewareFunc[]Any implements Echo#Any()
for sub-routes within the Group. Panics on error.
Rest
...middleware: MiddlewareFunc[]CONNECT implements Echo#CONNECT()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]DELETE implements Echo#DELETE()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]File implements Echo#File()
for sub-routes within the Group. Panics on error.
Rest
...middleware: MiddlewareFunc[]FileFS implements Echo#FileFS()
for sub-routes within the Group.
Rest
...m: MiddlewareFunc[]GET implements Echo#GET()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]Group creates a new sub-group with prefix and optional sub-group-level middleware.
Important! Group middlewares are only executed in case there was exact route match and not
for 404 (not found) or 405 (method not allowed) cases. If this kind of behaviour is needed then add
a catch-all route /*
for the group which handler returns always 404
Rest
...middleware: MiddlewareFunc[]HEAD implements Echo#HEAD()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]Match implements Echo#Match()
for sub-routes within the Group. Panics on error.
Rest
...middleware: MiddlewareFunc[]OPTIONS implements Echo#OPTIONS()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]PATCH implements Echo#PATCH()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]POST implements Echo#POST()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]PUT implements Echo#PUT()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]RouteNotFound implements Echo#RouteNotFound()
for sub-routes within the Group.
Example: g.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })
Rest
...m: MiddlewareFunc[]StaticFS implements Echo#StaticFS()
for sub-routes within the Group.
When dealing with embed.FS
use fs := echo.MustSubFS(fs, "rootDirectory") to create sub fs which uses necessary prefix for directory path. This is necessary as
//go:embed assets/imagesembeds files with paths including
assets/images` as their prefix.
TRACE implements Echo#TRACE()
for sub-routes within the Group. Panics on error.
Rest
...m: MiddlewareFunc[]Use implements Echo#Use()
for sub-routes within the Group.
Group middlewares are not executed on request when there is no matching route found.
Rest
...middleware: MiddlewareFunc[]Generated using TypeDoc
Group is a set of sub-routes for a specified route. It can be used for inner routes that share a common middleware or functionality that should be separate from the parent echo instance while still inheriting from it.