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.
rabbitpubsub
✓ gocloud.dev/pubsub/rabbitpubsub
Open a RabbitMQ subscription and receive a message.
package main
import (
"context"
"fmt"
"gocloud.dev/pubsub/rabbitpubsub"
)
func main() {
ctx := context.Background()
sub, err := rabbitpubsub.OpenSubscription(ctx, "amqp://guest:guest@localhost:5672/", "myqueue", nil)
if err != nil {
panic(err)
}
msg, _ := sub.Receive(ctx)
fmt.Println(string(msg.Body))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.46.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.