如何使用Golang组织异步消息发布到RabbitMQ?

I am trying to organize asynchronous message publishing in RabbitMQ using this popular go-package for RabbitMQ:

https://godoc.org/github.com/streadway/amqp

The library claimed support for asynchronous publishing. But I could not find an example. I also could not find any function that would accept the callback function as input.

Can someone help with a simple example of asynchronous publishing on Golang?

I found client-library for this task.

https://github.com/streadway/amqp

By default it's implemented asynchronous messaging.

May be for someone it would be helpful.