asaskevich / EventBus

[Go] Lightweight eventbus with async compatibility for Go
MIT License
1.74k stars 220 forks source link

Feature request: subscription by mask #32

Open eyudkin opened 6 years ago

eyudkin commented 6 years ago

Something like

bus.SubscribeAsync("content:*", func() {}, true)

And it should react on "content:created" and "content:deleted", etc.

Also, for this case - will be cool if there will be "event" parameter, for subscriber.