Ai
1 Star 0 Fork 0

charis-xiao/myutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
filter.go 556 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chao Xiao 提交于 2022-09-14 13:05 +08:00 . fix
package filter
import (
"context"
"time"
)
type OContext struct {
context context.Context
}
func NewOContext(cxt context.Context, requertParam map[string]interface{}) OContext {
handle := OContext{
context: cxt,
}
return handle
}
func (c *OContext) Deadline() (deadline time.Time, ok bool) {
return c.context.Deadline()
}
func (c *OContext) Value(key interface{}) interface{} {
return c.context.Value(key)
}
func (c *OContext) Done() <-chan struct{} {
return c.context.Done()
}
func (c *OContext) Err() error {
return c.context.Err()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/NaLanYuChen/myutils.git
git@gitee.com:NaLanYuChen/myutils.git
NaLanYuChen
myutils
myutils
v1.0.1

搜索帮助