in prep for changing the things, introducing more code.cat-town
parent
d24efe640b
commit
1ab8d7d42c
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
import (
|
||||
"meatballhat.com/amqpfun"
|
||||
)
|
||||
|
||||
const USAGE = "Usage: amqpfun-runner (publish|consume)"
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println(USAGE)
|
||||
os.Exit(1)
|
||||
}
|
||||
if os.Args[1] == "publish" {
|
||||
amqpfun.Publish()
|
||||
} else if os.Args[1] == "consume" {
|
||||
amqpfun.Consume()
|
||||
}
|
||||
}
|
Loading…
Reference in new issue