import "github.com/streadway/amqp" connection, err := amqp.Dial("amqp://guest:guest@localhost:5672/") channel, err := connection.Channel() queue, err := channel.QueueDeclare("test_queue", true, false, false, false, nil)
queue, err := channel.QueueDeclare("my_queue", false, false, false, false, nil)In this example, the QueueDeclare() function is called on the channel object to declare a new queue. The first argument is the name of the queue, the second argument indicates that the queue is not durable, and the remaining arguments are set to false.