Description

Param returns the value of the URL param. It is a shortcut for c.Params.ByName(key)

router.GET("/user/:id", func(c *gin.Context) {
	// a GET request to /user/john
	id := c.Param("id") // id == "john"
})

Param is referenced in 102 repositories

github.com/gin-gonic/gin github.com/Instafig/Instafig github.com/housinganywhere/ha

...