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

Method FullPath

context.go:177–179  ·  view source on GitHub ↗

FullPath returns a matched route full path. For not found routes returns an empty string. router.GET("/user/:id", func(c *gin.Context) { c.FullPath() == "/user/:id" // true })

()

Source from the content-addressed store, hash-verified

175// c.FullPath() == "/user/:id" // true
176// })
177func (c *Context) FullPath() string {
178 return c.fullPath
179}
180
181/************************************/
182/*********** FLOW CONTROL ***********/

Callers 1

Calls

no outgoing calls

Tested by 1