Ai
1 Star 0 Fork 0

raininfall/router

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
context.go 461 Bytes
一键复制 编辑 原始数据 按行查看 历史
Songrq 提交于 2019-10-24 15:23 +08:00 . Init
package router
import (
"gitee.com/raininfall/parameters"
)
// InputContext of router
type InputContext interface {
Path() string
Method() string
}
// Context of router
type Context interface {
ContextInput() InputContext
parameters.Parameters
}
// HandlerFunc of router
type HandlerFunc func(Context)
type routerContext struct {
InputContext
parameters.Parameters
}
func (rc *routerContext) ContextInput() InputContext {
return rc.InputContext
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/raininfall/router.git
git@gitee.com:raininfall/router.git
raininfall
router
router
b1320ef91e8f

搜索帮助