This commit is contained in:
		@ -386,7 +386,9 @@ func (c *Context) GetStringMapStringSlice(key string) (smss map[string][]string)
 | 
			
		||||
//
 | 
			
		||||
//	router.GET("/user/:id", func(c *gin.Context) {
 | 
			
		||||
//	    // a GET request to /user/john
 | 
			
		||||
//	    id := c.Param("id") // id == "john"
 | 
			
		||||
//	    id := c.Param("id") // id == "/john"
 | 
			
		||||
//	    // a GET request to /user/john/
 | 
			
		||||
//	    id := c.Param("id") // id == "/john/"
 | 
			
		||||
//	})
 | 
			
		||||
func (c *Context) Param(key string) string {
 | 
			
		||||
	return c.Params.ByName(key)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user