MCPcopy Index your code
hub / github.com/labstack/echo / PATCH

Method PATCH

echo.go:526–528  ·  view source on GitHub ↗

PATCH registers a new PATCH route for a path with matching handler in the router with optional route-level middleware. Panics on error.

(path string, h HandlerFunc, m ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

524// PATCH registers a new PATCH route for a path with matching handler in the
525// router with optional route-level middleware. Panics on error.
526func (e *Echo) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
527 return e.Add(http.MethodPatch, path, h, m...)
528}
529
530// POST registers a new POST route for a path with matching handler in the
531// router with optional route-level middleware. Panics on error.

Callers 2

TestGroup_PATCHFunction · 0.45
TestEchoPatchFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 2

TestGroup_PATCHFunction · 0.36
TestEchoPatchFunction · 0.36