https://www.bilibili.com/video/av68769981/?p=2
Course code :
https://www.qfgolang.com/?special=ginkuangjia&pid=2783
context.Param Get request parameters
The request interface of the client is DELETE type , request url by :http://localhost:9000/user/1.
final 1 Is the name of the user to be deleted id, It's a variable . So on the server side gin in ,
By routing :id To define a user to delete id A variable's value ,
Use at the same time context.Param To get