rabbitmq-tutorials/go
2014-01-07 19:48:49 +09:00
..
.gitignore .gitignore for Go tutorials 2013-10-17 01:10:14 +04:00
emit_log_direct.go Port tutorial 4 to Go 2013-10-17 23:43:57 +04:00
emit_log_topic.go Port tutorial 5 to Go 2013-10-17 23:43:15 +04:00
emit_log.go Refactor tutorial 2 2013-10-17 22:44:55 +04:00
new_task.go Port tutorial 2 to Go 2013-10-18 00:02:23 +04:00
README.md Ditto 2013-10-18 00:10:46 +04:00
receive_logs_direct.go optimization 2014-01-07 19:48:49 +09:00
receive_logs_topic.go optimization 2014-01-07 19:48:49 +09:00
receive_logs.go optimization 2014-01-07 19:48:49 +09:00
receive.go optimization 2014-01-07 19:48:49 +09:00
send.go Refactor error handling 2013-10-17 22:36:03 +04:00
worker.go optimization 2014-01-07 19:48:49 +09:00

Go code for RabbitMQ tutorials

Here you can find Go code examples from RabbitMQ tutorials.

Requirements

To run this code you need Go RabbitMQ client.

Code

Code examples are executed via go run:

Tutorial one: "Hello World!":

go run send.go
go run receive.go

Tutorial two: Work Queues:

go run new_task.go hello world
go run worker.go

Tutorial three: Publish/Subscribe

go run receive_logs.go
go run emit_log.go hello world

Tutorial four: Routing

go run receive_logs_direct.go info warn
go run emit_log_direct.go warn "a warning"

Tutorial five: Topics

go run receive_logs_topic.go info warn
go run emit_log_topic.go warn "a warning"

Tutorial six: RPC

TBD

To learn more, see Go RabbitMQ client.