Gin of Golang microframework

     "net/http"

    "github.com/gin-gonic/gin"

  •  restful routing

: 冒号Add a parameter to form a routing parameter, you can use the c.Params method to get the value

 access:

 * Match

 access:

  • query string

query string to be ?connected laterkey1=value1&key2=value2

 No default values ​​provided

 Override the default value if there are parameters

Return an empty string if the parameter does not exist

 

 

 

 

Guess you like

Origin blog.csdn.net/feikillyou/article/details/110563214
Recommended