gookit / event

📢 Lightweight event manager and dispatcher implements by Go. Go实现的轻量级的事件管理、调度程序库, 支持设置监听器的优先级, 支持使用通配符来进行一组事件的监听
https://pgk.go.dev/github.com/gookit/event
MIT License
498 stars 59 forks source link

How to unregisterListener ? #69

Open icoco opened 1 month ago

icoco commented 1 month ago

System (please complete the following information):

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

// go code

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

inhere commented 1 month ago

for gloabl event manager:

event.Std().RemoveListeners(name string);