代码拉取完成,页面将自动刷新
Here you can find Go code examples from RabbitMQ tutorials.
To run this code you need Go RabbitMQ client:
go get github.com/streadway/amqp
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
go run emit_log.go hello world
go run receive_logs_direct.go info warn
go run emit_log_direct.go warn "a warning"
go run receive_logs_topic.go "kern.*" "*.critical"
go run emit_log_topic.go kern.critical "A critical kernel error"
go run rpc_server.go
go run rpc_client.go 10
To learn more, see Go RabbitMQ client.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。