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

Function PATCH

ginS/gins.go:76–78  ·  view source on GitHub ↗

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

(relativePath string, handlers ...gin.HandlerFunc)

Source from the content-addressed store, hash-verified

74
75// PATCH is a shortcut for router.Handle("PATCH", path, handle)
76func PATCH(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes {
77 return engine().PATCH(relativePath, handlers...)
78}
79
80// PUT is a shortcut for router.Handle("PUT", path, handle)
81func PUT(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes {

Callers 1

TestPATCHFunction · 0.85

Calls 1

PATCHMethod · 0.65

Tested by 1

TestPATCHFunction · 0.68