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