1 Star 0 Fork 0

孟冬/simplego

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eventParams.go 322 Bytes
一键复制 编辑 原始数据 按行查看 历史
孟冬 提交于 2022-06-23 18:38 +08:00 . 20220623
package events
type EventParams[T any] struct {
EventBase[T, func(...T)]
//eventChan chan T
}
func NewEventParams[T any]() *EventParams[T] {
return &EventParams[T]{}
}
func (_this *EventParams[T]) Event(param ...T) {
cal := func(eventParam *func(...T)) {
(*eventParam)(param...)
}
_this.EventBase.event(&cal)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lossage/simplego.git
git@gitee.com:lossage/simplego.git
lossage
simplego
simplego
1bf782cbb23d

搜索帮助