package main
import "github.com/gin-gonic/gin"
func main() {
app := gin.Default()
app.Handle("GET", "/user/:id", func(context *gin.Context) {
userId := context.Param("id")
context.Writer.Write([]byte(userId))
})
app.Run()
}
网友评论