Connecting and such
This commit is contained in:
parent
597f07ec2f
commit
2f527a9d80
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user