.. | ||
.gitignore | ||
emit_log_direct.go | ||
emit_log_topic.go | ||
emit_log.go | ||
new_task.go | ||
README.md | ||
receive_logs_direct.go | ||
receive_logs_topic.go | ||
receive_logs.go | ||
receive.go | ||
send.go | ||
worker.go |
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
:
go run send.go
go run receive.go
go run new_task.go hello world
go run worker.go
Tutorial three: Publish/Subscribe
go run receive_logs.go hello world
go run emit_log.go
go run receive_logs_direct.go info warn
go run emit_log_direct.go warn "a warning"
go run receive_logs_topic.go info warn
go run emit_log_topic.go warn "a warning"
TBD
To learn more, see Go RabbitMQ client.