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