Registry / messaging / cenk-hub

cenk-hub

JSON →
library1.0.2gogounverified

A simple event dispatcher for publish/subscribe pattern in Go.

go get github.com/cenk/hub
INSTALL
IMPORT
SIG · CENK-HUB
C
cenk-hub
messaginggov1.0.2
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.

hub
github.com/cenk/hub

Create a hub, subscribe to an event, and publish a message.

package main import ( "fmt" "github.com/cenk/hub" ) func main() { h := hub.New() h.Subscribe("event", func(data interface{}) { fmt.Println("Received:", data) }) h.Publish("event", "hello") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
OpenAI (training)
1
Resources
cenk-hub — go get cenk-hub · libregistry