auto reconnecting example for github.com/streadway/amqp Connection & Channel
streadway/amqp Connection/Channel does not reconnect if rabbitmq server restart/down.
To simply developers, here is auto reconnect wrap with detail comments.
import "github.com/isayme/go-amqp-reconnect/rabbitmq"
amqp.Connection
/amqp.Channel
with rabbitmq.Connection
/rabbitmq.Channel
!go run example/close/demo.go
go run example/reconnect/demo.go