MCPcopy
hub / github.com/gin-gonic/gin / PATCH

Method PATCH

routergroup.go:126–128  ·  view source on GitHub ↗

PATCH is a shortcut for router.Handle("PATCH", path, handlers).

(relativePath string, handlers ...HandlerFunc)

Source from the content-addressed store, hash-verified

124
125// PATCH is a shortcut for router.Handle("PATCH", path, handlers).
126func (group *RouterGroup) PATCH(relativePath string, handlers ...HandlerFunc) IRoutes {
127 return group.handle(http.MethodPatch, relativePath, handlers)
128}
129
130// PUT is a shortcut for router.Handle("PUT", path, handlers).
131func (group *RouterGroup) PUT(relativePath string, handlers ...HandlerFunc) IRoutes {

Callers

nothing calls this directly

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected