rabbitmq-tutorials/go-stream
Michael Klishin ac7b262a04 Wording
2024-05-25 13:20:04 -04:00
..
go.mod Hello world for Golang stream client (#383) 2024-05-09 09:23:06 +02:00
go.sum Hello world for Golang stream client (#383) 2024-05-09 09:23:06 +02:00
README.md Wording 2024-05-25 13:20:04 -04:00
receive.go Hello world for Golang stream client (#383) 2024-05-09 09:23:06 +02:00
send.go Hello world for Golang stream client (#383) 2024-05-09 09:23:06 +02:00

Go code for RabbitMQ tutorials

Here you can find Go code examples from RabbitMQ tutorials.

To successfully use the examples you will need a running RabbitMQ server with the stream plugin enabled.

See First Application With RabbitMQ Streams, Stream plugin documentation and how to preconfigure plugins.

Requirements

These examples use the rabbitmq/rabbitmq-stream-go-client client library. Get it first with

 go get -u github.com/rabbitmq/rabbitmq-stream-go-client

Code

Code examples are executed via go run:

Tutorial one: "Hello World!":

go run send.go
go run receive.go

To learn more, see rabbitmq/rabbitmq-stream-go-client.