Registry / messaging / acorn-io-baaah

acorn-io-baaah

JSON →
library0.0.0-20241031014532-41ccf5acc58bgogounverified

Package baaah provides a simple event bus for Go applications.

go get github.com/acorn-io/baaah
INSTALL
IMPORT
SIG · ACORN-IO-BAAAH
A
acorn-io-baaah
messaginggov0.0.0-20241031014532-41ccf5acc58b
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.

baaah
github.com/acorn-io/baaah

Creates an event bus, subscribes to an event, and publishes a message.

package main import ( "fmt" "github.com/acorn-io/baaah" ) func main() { bus := baaah.New() bus.Subscribe("event", func(data interface{}) { fmt.Println(data) }) bus.Publish("event", "hello") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20241031014532-41ccf5acc58blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
60 hits · last 30 days
node
53
OpenAI (training)
1
Resources
acorn-io-baaah — go get acorn-io-baaah · libregistry