Test your Rabbitmq things with this
Based on:
- https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/go
- https://www.rabbitmq.com/tutorials/tutorial-one-go.html
# local
go get "github.com/streadway/amqp"
# docker
docker build -t rabbitmq_go .
Note: all parameters are mandatory for now, even the routing key
# local
go run producer.go "hello worlllld" exchange routing_key
# docker
docker run --rm -it --network host rabbitmq_go ./producer message exchange routingkey
# local
go run consumer.go queue
# docker
docker run --rm -it --network host rabbitmq_go ./consumer queue