-
-
Save monkrus/b88f3795aaba0cbfa5adf537b5ee55a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "github.com/streadway/amqp" | |
| ) | |
| func main() { | |
| fmt.Println("Go RabbitMQ Tutorial") | |
| conn, err := ampq.Dial("ampq://guest:guest@localhost:5672/") | |
| if err != nil { | |
| fmt.Println(err) | |
| panic(err) | |
| } | |
| defer conn.Close() | |
| fmt.Println("Succesfully Connected To our RabbitMQ Instance") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment