From b05409a973d3e0d9cad01909fa797c0d9c872af0 Mon Sep 17 00:00:00 2001 From: Cookiery <2061803022@qq.com> Date: Thu, 24 Nov 2022 13:11:02 +0800 Subject: [PATCH] #3369 modify the annotation about Context.Param() --- context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index c41c71ecf9..737e4d7a37 100644 --- a/context.go +++ b/context.go @@ -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)