Registry / messaging / asaskevich-eventbus

asaskevich-eventbus

JSON →
library0.0.0-20200907212545-49d423059eefgogounverified

Package EventBus implements a lightweight event bus for asynchronous communication.

go get github.com/asaskevich/EventBus
INSTALL
IMPORT
SIG · ASASKEVICH-EVENTBU
A
asaskevich-eventbus
messaginggov0.0.0-20200907212545-49d423059eef
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EventBus
github.com/asaskevich/EventBus

Subscribe to a topic and publish a message.

package main import ( "fmt" "github.com/asaskevich/EventBus" ) func main() { bus := EventBus.New() bus.Subscribe("topic", func(data string) { fmt.Println("Received:", data) }) bus.Publish("topic", "hello") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200907212545-49d423059eeflatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
asaskevich-eventbus — go get asaskevich-eventbus · libregistry