aceld / aceld/zinx

建议handler里得方法增加context参数在第一位

Open
#248 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7.8k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

这样在中间件里有一些需要和handler中共享的状态,可以放到context中,根据 Go 的最佳实践,也建议将 context.Context 参数放在函数参数列表的第一位。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.