Connecting and such

This commit is contained in:
Dan Buch 2012-11-06 23:09:13 -05:00
parent 597f07ec2f
commit 2f527a9d80

View File

@ -1,6 +1,7 @@
package main
import (
"flag"
"fmt"
)
@ -8,7 +9,15 @@ import (
"github.com/streadway/amqp"
)
var (
connUri = flag.String("connuri", "amqp://guest:guest@localhost:5672",
"Connection URI for AMQP thingy")
)
func main() {
amqp.Dial("")
fmt.Println("YES GO!")
flag.Parse()
conn, err := amqp.Dial(*connUri)
fmt.Println("conn=%+v", conn)
fmt.Println("err=%+v", err)
}