Skip to content

gin学习记录-中间件和路由 - Kjasn's World #8

@kjasn

Description

@kjasn

https://kjasn.github.io/2023/08/26/gin%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95-%E4%B8%AD%E9%97%B4%E4%BB%B6%E5%92%8C%E8%B7%AF%E7%94%B1/

  1. gin 中间件和路由把请求的处理函数叫做中间件,且形参必须是*gin.Context 一个请求可以有多个中间件通过Use()函数来调用中间件

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions