建议对外开放Context的定义 #42
Labels
No Label
bug
doc
duplicate
enhancement
help wanted
invalid
question
testing
wait_for_investigate
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lunny/tango#42
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @crazystory
想在Context里注入一些自定义的东西.但是目前无法实现.
是否考虑下Context采用interface的方式,默认返回内置的Context
Author: @qjebbs
先定义一个自定义的Ctx:
然后使用这个Ctx替换
tango.Ctx
就可以了:Author: @lunny
对啊,有Contexter中间件和接口啊
Author: @crazystory
...这个方法不错,可以暂时解决我的问题.
但是这个方法必须使用struct.Get模式
无法支持func(*tango.Context)的模式