Registry / messaging / hannahhoward-go-pubsub

hannahhoward-go-pubsub

JSON →
library1.0.0gogounverified

A Go package for implementing publish-subscribe messaging patterns.

go get github.com/hannahhoward/go-pubsub
INSTALL
IMPORT
SIG · HANNAHHOWARD-GO-PU
H
hannahhoward-go-pubsub
messaginggov1.0.0
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.

pubsub
github.com/hannahhoward/go-pubsub

Subscribes to a topic and publishes a message.

package main import ( "fmt" "github.com/hannahhoward/go-pubsub" ) func main() { ps := pubsub.New() sub := ps.Subscribe("topic") go func() { msg := <-sub fmt.Println(msg) }() ps.Publish("topic", "hello") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
hannahhoward-go-pubsub — go get hannahhoward-go-pubsub · libregistry